fix l2 cache issues
This commit is contained in:
@@ -18,7 +18,7 @@ DBG_PRINT_FLAGS = -DDBG_PRINT_CORE_ICACHE \
|
||||
#MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=4
|
||||
MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=2
|
||||
|
||||
#DEBUG = 1
|
||||
#DEBUG=1
|
||||
#AFU=1
|
||||
|
||||
CFLAGS += -fPIC
|
||||
|
||||
@@ -138,8 +138,11 @@ public:
|
||||
int flush_caches(size_t dev_maddr, size_t size) {
|
||||
if (future_.valid()) {
|
||||
future_.wait(); // ensure prior run completed
|
||||
}
|
||||
simulator_.flush_caches(dev_maddr, size);
|
||||
}
|
||||
simulator_.flush_caches(dev_maddr, size);
|
||||
while (simulator_.is_busy()) {
|
||||
simulator_.step();
|
||||
};
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user