This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

el2 debugging

Hi guys,

I'm trying to debug a hypervisor program at EL2 on QEMU with gdb, and a few questions coming up.

I can step thru the code at EL1 before hitting the hvc instruction, once that instruction invoked, the gdb hangs.

I read the spec, and follow the man to do the following things: pstate.d is unmasked, and mdscr_el1.kde is on, and mdcr_el2.tde is on.

Then an exception taken in el2 vec table. My question are:

Q1: Do I have to write my own debug exception handler or gdb can handle that automatically?

Q2: Is this not the properly way to debug EL2?

Q2: If I run the OS & Hypervisor on QEMU, is it possible to debug them thru DS-5? (without using Fast Model)

Thanks a lot

Parents Reply Children