Skip to content

Commit

Permalink
make aarch64 sbe more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
lacraig2 committed Oct 22, 2024
1 parent bbf9f45 commit 568a433
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions panda/plugins/osi_linux/osi_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,12 @@ bool aarch64_initialized = false;

void aarch64_sbe(CPUState *cpu, TranslationBlock *tb);
void aarch64_sbe(CPUState *cpu, TranslationBlock *tb) {
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];
if (unlikely(panda_in_kernel_code_linux(cpu))
&& address_in_kernel_code_linux(pos))
{
aarch64_initialized = true;
spel0 = ((CPUARMState*) cpu->env_ptr)->sp_el[0];
spel0 = pos;
}
}

Expand Down

0 comments on commit 568a433

Please sign in to comment.