summaryrefslogtreecommitdiffstats
path: root/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index 433ab0d..d35533a 100644
--- a/exec.c
+++ b/exec.c
@@ -176,6 +176,7 @@ init_regs(sregs)
}
}
+#ifdef ENABLE_L1CACHE
void
l1data_snoop(uint32 address, uint32 cpu)
{
@@ -196,8 +197,8 @@ l1data_update(uint32 address, uint32 cpu)
if (sregs[cpu].l1dtags[address >> L1DLINEBITS & L1DMASK] != (address >> L1DLINEBITS))
{
sregs[cpu].l1dtags[(address >> L1DLINEBITS) & L1DMASK] = (address >> L1DLINEBITS);
- sregs[cpu].hold += 17;
+ sregs[cpu].hold += T_L1DMISS;
sregs[cpu].l1dmiss++;
}
}
-
+#endif