| 262 | } |
| 263 | |
| 264 | bool unprivileged_code(void) { |
| 265 | /* rawPC the PC after the next prefetch (which we do late), before (after on revM) adding MBASE. */ |
| 266 | uint32_t rawPC = cpu.registers.PC + 1; |
| 267 | bool mode = cpu.ADL; |
| 268 | rawPC = asic.serFlash ? cpu_address_mode(rawPC, mode) : cpu_mask_mode(rawPC, mode); |
| 269 | return rawPC > control.privileged && (rawPC < control.protectedStart || |
| 270 | rawPC > control.protectedEnd); |
| 271 | } |
no test coverage detected