On 05/13/2015 11:08 PM, Alistair Francis wrote: > void helper_stackprot(CPUMBState *env, uint32_t addr) > { > - if (addr < env->slr || addr > env->shr) { > + MicroBlazeCPU *cpu = mb_env_get_cpu(env); > + > + if (cpu->cfg.stackproc && (addr < env->slr || addr > env->shr)) {
This check should be done in translate.c to avoid calling this function in the first place. r~