notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
deal with some strict aliasing issues
[picodrive.git]
/
pico
/
state.c
diff --git
a/pico/state.c
b/pico/state.c
index
de2d8ab
..
6c11381
100644
(file)
--- a/
pico/state.c
+++ b/
pico/state.c
@@
-290,7
+290,8
@@
static int state_save(void *file)
SekPackCpu(buff, 1);
\r
if (Pico_mcd->s68k_regs[3] & 4) // 1M mode?
\r
wram_1M_to_2M(Pico_mcd->word_ram2M);
\r
SekPackCpu(buff, 1);
\r
if (Pico_mcd->s68k_regs[3] & 4) // 1M mode?
\r
wram_1M_to_2M(Pico_mcd->word_ram2M);
\r
- Pico_mcd->m.hint_vector = *(unsigned short *)(Pico_mcd->bios + 0x72);
\r
+ memcpy(&Pico_mcd->m.hint_vector, Pico_mcd->bios + 0x72,
\r
+ sizeof(Pico_mcd->m.hint_vector));
\r
\r
CHECKED_WRITE_BUFF(CHUNK_S68K, buff);
\r
CHECKED_WRITE_BUFF(CHUNK_PRG_RAM, Pico_mcd->prg_ram);
\r
\r
CHECKED_WRITE_BUFF(CHUNK_S68K, buff);
\r
CHECKED_WRITE_BUFF(CHUNK_PRG_RAM, Pico_mcd->prg_ram);
\r