Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 19:9da7a8e38f9d
prev18:9a1b5d75703f
next23:1ec3acd0594d
author nkeynes
date Thu Dec 22 07:38:12 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Implement 95% of the SCIF serial interface
Implement basic load_bin_file function to try to load demos directly
Update TMU to run all 3 timers, start on general timing
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.c Thu Dec 15 13:33:14 2005 +0000
1.2 +++ b/src/sh4/sh4core.c Thu Dec 22 07:38:12 2005 +0000
1.3 @@ -24,13 +24,13 @@
1.4
1.5 void sh4_reset(void)
1.6 {
1.7 + /* zero everything out, for the sake of having a consistent state. */
1.8 + memset( &sh4r, 0, sizeof(sh4r) );
1.9 sh4r.pc = 0xA0000000;
1.10 sh4r.new_pc= 0xA0000002;
1.11 sh4r.vbr = 0x00000000;
1.12 sh4r.fpscr = 0x00040001;
1.13 sh4r.sr = 0x700000F0;
1.14 - sh4r.icount= 0;
1.15 - /* Everything else is undefined anyway, so don't bother setting it */
1.16 intc_reset();
1.17 }
1.18
.