qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QEMU Memory access- to get contents of register after each load/stor


From: Alex Bennée
Subject: Re: QEMU Memory access- to get contents of register after each load/store
Date: Thu, 18 Feb 2021 12:02:30 +0000
User-agent: mu4e 1.5.8; emacs 28.0.50

Naomi Motwani <naomimotwani@gmail.com> writes:

> Hello!
>
> I am running a simple addition code on Arm A9 with three variables allotted 
> to the heap. I need to track the memory locations from where
> the code is loading and storing to. I have hereby added the c code and the 
> assembly version of the same. I need to trace the register
> contents after each instruction in the assembly code. I tried to print things 
> in cpu-exec.c (in function cpu_tb_exec), but it only prints the
> register contents at the end of the Translation Buffer and not at the end of 
> each load and store. Can someone please suggest a place
> where i can monitor the load store register contents in the source
> code every time this instruction is executed?

A very crude approach is to run:

  -d cpu,nochain -singlestep

which will limit each block to a single instruction and disable TB
chaining. This will generate a lot of logs.

>
> - Naomi


-- 
Alex Bennée



reply via email to

[Prev in Thread] Current Thread [Next in Thread]