diff options
author | 2008-09-11 15:14:39 +0000 | |
---|---|---|
committer | 2008-09-11 15:14:39 +0000 | |
commit | b10a182054d9b10b8d88fc007819a9b6b8218a9b (patch) | |
tree | 893e4a736b8aa64826dbe43de10533dde1433927 /src/emu/cpu/jaguar | |
parent | 746ab44148c5013bfe6142e9f3e267b3411e16ad (diff) |
From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Even more reset/multisession cleanup
Hi mamedev,
These two patches try to reduce the amount of variable in .data, which
usually point to multisession/reset bugs or missing const qualifiers.
The first patch just adds const to a number of items, moving them from
.data to .rdata. The second patch sets other items to zero (moving
them to .bss), adding reset/init code where appropriate.
~aa
Diffstat (limited to 'src/emu/cpu/jaguar')
-rw-r--r-- | src/emu/cpu/jaguar/jaguar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/cpu/jaguar/jaguar.c b/src/emu/cpu/jaguar/jaguar.c index b191376d4bf..f6b58e17fe7 100644 --- a/src/emu/cpu/jaguar/jaguar.c +++ b/src/emu/cpu/jaguar/jaguar.c @@ -116,7 +116,7 @@ static int bankswitch_icount; static jaguar_regs jaguar; static UINT16 * mirror_table; static UINT8 * condition_table; -static int executing_cpu = -1; +static int executing_cpu; static const UINT32 convert_zero[32] = { 32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 }; @@ -460,6 +460,7 @@ INLINE void common_reset(void) { init_tables(); + executing_cpu = -1; jaguar.b0 = jaguar.r; jaguar.b1 = jaguar.a; |