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
/
cd
/
pico.c
diff --git
a/pico/cd/pico.c
b/pico/cd/pico.c
index
7549d54
..
2b65295
100644
(file)
--- a/
pico/cd/pico.c
+++ b/
pico/cd/pico.c
@@
-43,7
+43,7
@@
PICO_INTERNAL int PicoResetMCD(void)
memset(&Pico_mcd->pcm, 0, sizeof(Pico_mcd->pcm));
memset(&Pico_mcd->m, 0, sizeof(Pico_mcd->m));
memset(&Pico_mcd->pcm, 0, sizeof(Pico_mcd->pcm));
memset(&Pico_mcd->m, 0, sizeof(Pico_mcd->m));
-
*(unsigned int *)(Pico_mcd->bios + 0x70) = 0xffffffff
; // reset hint vector (simplest way to implement reg6)
+
memset(Pico_mcd->bios + 0x70, 0xff, 4)
; // reset hint vector (simplest way to implement reg6)
Pico_mcd->m.state_flags |= 1; // s68k reset pending
Pico_mcd->s68k_regs[3] = 1; // 2M word RAM mode with m68k access after reset
Pico_mcd->m.state_flags |= 1; // s68k reset pending
Pico_mcd->s68k_regs[3] = 1; // 2M word RAM mode with m68k access after reset