Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 102:844a3f2a76ff
prev95:7c0dac698ea2
next104:94b2d9962b59
author nkeynes
date Mon Mar 13 12:38:39 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Refactor bios into more generic syscall structure. Add initial hooks for
dc-load functions
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.c Wed Feb 15 12:38:50 2006 +0000
1.2 +++ b/src/sh4/sh4core.c Mon Mar 13 12:38:39 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4core.c,v 1.20 2006-02-15 12:38:50 nkeynes Exp $
1.6 + * $Id: sh4core.c,v 1.21 2006-03-13 12:38:39 nkeynes Exp $
1.7 *
1.8 * SH4 emulation core, and parent module for all the SH4 peripheral
1.9 * modules.
1.10 @@ -25,7 +25,7 @@
1.11 #include "sh4/intc.h"
1.12 #include "mem.h"
1.13 #include "clock.h"
1.14 -#include "bios.h"
1.15 +#include "syscall.h"
1.16
1.17 /* CPU-generated exception code/vector pairs */
1.18 #define EXC_POWER_RESET 0x000 /* vector special */
1.19 @@ -333,7 +333,7 @@
1.20 pc = sh4r.pc;
1.21 if( pc > 0xFFFFFF00 ) {
1.22 /* SYSCALL Magic */
1.23 - bios_syscall( pc & 0xFF );
1.24 + syscall_invoke( pc );
1.25 sh4r.in_delay_slot = 1;
1.26 pc = sh4r.pc = sh4r.pr;
1.27 sh4r.new_pc = sh4r.pc + 2;
.