Open branylagaffe opened 1 month ago
The issue was on the QEMU API for register read. It was using env->regs
to read registers, but regs
is ARM register list and we should use xregs
which is the register list for aarch64. ARM has 16 registers and the rest of the registers we read is garbage. This was resulting in reading 0 for the stack pointer.
Fixed it in f5c988f0b6456140dda0844ecd95f71ac178d3d1
Side note: the predicted as branch but not branch had no impact on this, but fixed by changing the check to check the branch type instead of existence of branch check. 336dfe0db00c9e4f662ffeff185f98d8bf160d92
Good Work @BugraEryilmaz You need to explain to me how you found out about that 👍🏻
I have been looking for this for 2 whole days
Description
After 100 to 1000, KnottyKraken is queuing instruction with PA=0x00000000, VA=0xFFFFFFFF...
Steps to Reproduce
Additional Information
Screenshots (if applicable)
[If relevant, include screenshots to help illustrate the issue.]