Seems to fix save state problems in alt/smp [BearOso].

This commit is contained in:
Themaister 2011-10-03 15:42:02 +02:00
parent 37a82d0dda
commit 99510c7114
3 changed files with 9 additions and 1 deletions

View File

@ -39,7 +39,6 @@ void SMP::op_step() {
#define op_writeaddr(addr, data) op_write(addr, data)
#define op_readstack() op_read(0x0100 | ++regs.sp)
#define op_writestack(data) op_write(0x0100 | regs.sp--, data)
static unsigned rd, wr, dp, sp, ya, bit;
#if defined(CYCLE_ACCURATE)

View File

@ -135,6 +135,13 @@ void SMP::serialize(serializer &s) {
s.integer(timer2.stage1_ticks);
s.integer(timer2.stage2_ticks);
s.integer(timer2.stage3_ticks);
s.integer(rd);
s.integer(wr);
s.integer(dp);
s.integer(sp);
s.integer(ya);
s.integer(bit);
}
SMP::SMP() {

View File

@ -44,6 +44,8 @@ public:
unsigned opcode_number;
unsigned opcode_cycle;
unsigned rd, wr, dp, sp, ya, bit;
struct Regs {
uint16 pc;
uint8 sp;