We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf9f45 commit 568a433Copy full SHA for 568a433
panda/plugins/osi_linux/osi_linux.cpp
@@ -356,9 +356,12 @@ bool aarch64_initialized = false;
356
357
void aarch64_sbe(CPUState *cpu, TranslationBlock *tb);
358
void aarch64_sbe(CPUState *cpu, TranslationBlock *tb) {
359
- if (unlikely(panda_in_kernel_code_linux(cpu) && ((CPUARMState*) cpu->env_ptr)->sp_el[0] != 0)){
+ target_ulong pos = ((CPUARMState *)cpu->env_ptr)->sp_el[0];
360
+ if (unlikely(panda_in_kernel_code_linux(cpu))
361
+ && address_in_kernel_code_linux(pos))
362
+ {
363
aarch64_initialized = true;
- spel0 = ((CPUARMState*) cpu->env_ptr)->sp_el[0];
364
+ spel0 = pos;
365
}
366
367
0 commit comments