diff options
author | Jiri Gaisler <jiri@gaisler.se> | 2019-05-28 00:02:40 +0200 |
---|---|---|
committer | Jiri Gaisler <jiri@gaisler.se> | 2019-05-28 00:09:27 +0200 |
commit | 9277f1913aa341efbf6d111ec25e1dc863158cf5 (patch) | |
tree | 71fd2e77837ad5cd15d732ec208bfeca990ed275 /exec.c | |
parent | 6a742ad589f8a5967cb878e4065f70d93b90fb58 (diff) |
Made L1 cache optional through --enable-l1cache
* Removed stale config.h
* Updated autoconf script with relevant checks
* Re-implemented leon3/grlib timer with less events
* Bumped version to 2.15
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |