diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2024-12-22 13:00:03 +0000 |
---|---|---|
committer | Thomas Huth <huth@tuxfamily.org> | 2024-12-29 07:13:47 +0100 |
commit | 501b5099f69e75520fc1d6368c44c42ebe337ddc (patch) | |
tree | 9450b60f2b21ef21eadb47bb7cfe4e0573b82068 | |
parent | 68f54f7e5943048efb7990094f980609d5602021 (diff) | |
download | qemu-501b5099f69e75520fc1d6368c44c42ebe337ddc.zip qemu-501b5099f69e75520fc1d6368c44c42ebe337ddc.tar.gz qemu-501b5099f69e75520fc1d6368c44c42ebe337ddc.tar.bz2 |
next-cube: don't use rtc phase value of -1
The rtc phase value of -1 is directly equivalent to using a phase value of 0 so
simplify the logic to use an initial rtc phase of 0.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-ID: <20241222130012.1013374-25-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
-rw-r--r-- | hw/m68k/next-cube.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/m68k/next-cube.c b/hw/m68k/next-cube.c index 0f24905..3ca70e3 100644 --- a/hw/m68k/next-cube.c +++ b/hw/m68k/next-cube.c @@ -265,9 +265,6 @@ static void next_scr2_rtc_update(NeXTPC *s) if (scr2_2 & 0x1) { /* DPRINTF("RTC %x phase %i\n", scr2_2, rtc->phase); */ - if (rtc->phase == -1) { - rtc->phase = 0; - } /* If we are in going down clock... do something */ if (((old_scr2 & SCR2_RTCLK) != (scr2_2 & SCR2_RTCLK)) && ((scr2_2 & SCR2_RTCLK) == 0)) { @@ -282,7 +279,7 @@ static void next_scr2_rtc_update(NeXTPC *s) } } else { /* else end or abort */ - rtc->phase = -1; + rtc->phase = 0; rtc->command = 0; rtc->value = 0; } |