Search
lxdream.org :: lxdream/src/sh4/sh4.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.h
changeset 936:f394309c399a
prev930:07e5b11419db
next1067:d3c00ffccfcd
author nkeynes
date Sat Dec 27 02:59:35 2008 +0000 (13 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Replace fpscr_mask/fpscr flags in xlat_cache_block with a single xlat_sh4_mode,
which tracks the field of the same name in sh4r - actually a little faster this way.
Now depends on SR.MD, FPSCR.PR and FPSCR.SZ (although it doesn't benefit from the SR
flag yet).

Also fixed the failure to check the flags in the common case (code address returned
by previous block) which took away the performance benefits, but oh well.
file annotate diff log raw
1.1 --- a/src/sh4/sh4.h Mon Dec 22 09:51:11 2008 +0000
1.2 +++ b/src/sh4/sh4.h Sat Dec 27 02:59:35 2008 +0000
1.3 @@ -87,6 +87,9 @@
1.4 * a delay slot (certain rules apply) */
1.5 uint32_t slice_cycle; /* Current nanosecond within the timeslice */
1.6 int sh4_state; /* Current power-on state (one of the SH4_STATE_* values ) */
1.7 +
1.8 + /* Not saved */
1.9 + int xlat_sh4_mode; /* Collection of execution mode flags (derived) from fpscr, sr, etc */
1.10 };
1.11
1.12 extern struct sh4_registers sh4r;
.