Skip to content

Commit 501b509

Browse files
mcaylandhuth
authored andcommitted
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 <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Message-ID: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent 68f54f7 commit 501b509

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

hw/m68k/next-cube.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,6 @@ static void next_scr2_rtc_update(NeXTPC *s)
265265

266266
if (scr2_2 & 0x1) {
267267
/* DPRINTF("RTC %x phase %i\n", scr2_2, rtc->phase); */
268-
if (rtc->phase == -1) {
269-
rtc->phase = 0;
270-
}
271268
/* If we are in going down clock... do something */
272269
if (((old_scr2 & SCR2_RTCLK) != (scr2_2 & SCR2_RTCLK)) &&
273270
((scr2_2 & SCR2_RTCLK) == 0)) {
@@ -282,7 +279,7 @@ static void next_scr2_rtc_update(NeXTPC *s)
282279
}
283280
} else {
284281
/* else end or abort */
285-
rtc->phase = -1;
282+
rtc->phase = 0;
286283
rtc->command = 0;
287284
rtc->value = 0;
288285
}

0 commit comments

Comments
 (0)