mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target-lm32: flush tlb after clearing env
The tlb data is stored within the CPU env. Therefore, the initialization has to be done after we clear the environment. Otherwise the tlb will have a valid entry for address 0x0. Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
parent
de55c4bd8b
commit
a5b0f6d5c0
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@ static void lm32_cpu_reset(CPUState *s)
|
|||
|
||||
lcc->parent_reset(s);
|
||||
|
||||
tlb_flush(env, 1);
|
||||
|
||||
/* reset cpu state */
|
||||
memset(env, 0, offsetof(CPULM32State, breakpoints));
|
||||
|
||||
tlb_flush(env, 1);
|
||||
}
|
||||
|
||||
static void lm32_cpu_realizefn(DeviceState *dev, Error **errp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue