|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [RFC v1 2/3] target-microblaze: Allow the stack protection to be disabled |
Date: | Thu, 14 May 2015 11:36:13 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
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~
[Prev in Thread] | Current Thread | [Next in Thread] |