Search
lxdream.org :: lxdream/src/util.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/util.c
changeset 768:b2a54f6864eb
prev736:a02d1475ccfd
next1042:0fd066956482
author nkeynes
date Sat Dec 27 02:59:35 2008 +0000 (15 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/util.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/util.c Sat Dec 27 02:59:35 2008 +0000
1.3 @@ -30,6 +30,7 @@
1.4 #include <png.h>
1.5 #include "dream.h"
1.6 #include "display.h"
1.7 +#include "dreamcast.h"
1.8 #include "gui.h"
1.9 #include "sh4/sh4.h"
1.10
1.11 @@ -320,6 +321,11 @@
1.12 if( level <= EMIT_ERR ) {
1.13 if( gui_error_dialog( text ) ) {
1.14 g_free(text);
1.15 + // If we're running, halt on error to avoid potentially flooding
1.16 + // the user with error messages.
1.17 + if( dreamcast_is_running() ) {
1.18 + dreamcast_stop();
1.19 + }
1.20 return;
1.21 }
1.22 }
.