notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(MSVC) Update MSVC solution
[picodrive.git]
/
cpu
/
sh2
/
compiler.c
diff --git
a/cpu/sh2/compiler.c
b/cpu/sh2/compiler.c
index
76df220
..
2dd3430
100644
(file)
--- a/
cpu/sh2/compiler.c
+++ b/
cpu/sh2/compiler.c
@@
-1017,7
+1017,7
@@
static void rcache_unlock_all(void)
reg_temp[i].flags &= ~HRF_LOCKED;
}
reg_temp[i].flags &= ~HRF_LOCKED;
}
-static
inline
u32 rcache_used_hreg_mask(void)
+static
INLINE
u32 rcache_used_hreg_mask(void)
{
u32 mask = 0;
int i;
{
u32 mask = 0;
int i;
@@
-3111,12
+3111,10
@@
void sh2_drc_wcheck_da(unsigned int a, int val, int cpuid)
1 + cpuid, SH2_DRCBLK_DA_SHIFT, 0xfff);
}
1 + cpuid, SH2_DRCBLK_DA_SHIFT, 0xfff);
}
-int sh2_execute(SH2 *sh2c, int cycles)
+int sh2_execute
_drc
(SH2 *sh2c, int cycles)
{
int ret_cycles;
{
int ret_cycles;
- sh2c->cycles_timeslice = cycles;
-
// cycles are kept in SHR_SR unused bits (upper 20)
// bit11 contains T saved for delay slot
// others are usual SH2 flags
// cycles are kept in SHR_SR unused bits (upper 20)
// bit11 contains T saved for delay slot
// others are usual SH2 flags
@@
-3130,7
+3128,7
@@
int sh2_execute(SH2 *sh2c, int cycles)
dbg(1, "warning: drc returned with cycles: %d", ret_cycles);
sh2c->sr &= 0x3f3;
dbg(1, "warning: drc returned with cycles: %d", ret_cycles);
sh2c->sr &= 0x3f3;
- return
sh2c->cycles_timeslice -
ret_cycles;
+ return ret_cycles;
}
#if (DRC_DEBUG & 2)
}
#if (DRC_DEBUG & 2)