Skip to content

Commit 6c49c7d

Browse files
committed
ee: Temporarily remove CSR spinloop detection
1 parent cdf6cd3 commit 6c49c7d

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/ee/ee_cached.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -983,13 +983,6 @@ static inline void ee_i_lb(struct ee_state* ee, const ee_instruction& i) {
983983
EE_RT = SE648(bus_read8(ee, EE_RS32 + SE3216(EE_D_I16)));
984984
}
985985
static inline void ee_i_lbu(struct ee_state* ee, const ee_instruction& i) {
986-
if (((EE_RS32 + SE3216(EE_D_I16)) & 0x1fffffff) == 0x06776cc0) {
987-
printf("ee: Debug breakpoint at %08x pc=%08x block=%08x\n", EE_RS32 + SE3216(EE_D_I16), ee->pc,
988-
ee->block_pc
989-
);
990-
*(int*)0 = 0; // Debug breakpoint
991-
}
992-
993986
EE_RT = bus_read8(ee, EE_RS32 + SE3216(EE_D_I16));
994987
}
995988
static inline void ee_i_ld(struct ee_state* ee, const ee_instruction& i) {
@@ -3736,11 +3729,11 @@ int ee_run_block(struct ee_state* ee, int max_cycles) {
37363729
return 1024;
37373730
}
37383731

3739-
if (ee->csr_reads >= 1000) {
3740-
ee_check_irq(ee);
3732+
// if (ee->csr_reads >= 1000) {
3733+
// ee_check_irq(ee);
37413734

3742-
return 1024;
3743-
}
3735+
// return 1024;
3736+
// }
37443737

37453738
if (ee->block_cache.contains(ee->pc)) {
37463739
const auto& block = ee->block_cache[ee->pc];

0 commit comments

Comments
 (0)