I believe there's a problem with using the new ABI API with X86+KVM.
I'm seeing the following when I execute `m5 readfile`
It looks like the parameter fetching isn't quite right. I think that it should be something like `0x7ffffffbeca0, 0x40000, 0x0`. This is the address of the buffer, the size of the buffer, and the offset.
I tried using GDB with gem5, but the output is inscrutable due to the recursive template :/. , if you could give me some pointers, I'd appreciate it!
I can see that my register state in the guest is correct (using GDB in the guest). The args in in rdi, rsi, and rdx, respectively:
I think the problem is that the position isn't being updated in the Argument template. , does the following change look right?