Skip to contentSkip to conversation

Sparc Search PC support problem, help!

Qemu-devel Blue Swirl 1 participant 1 message Sep 8, 2004

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Hi,

Search PC function must be implemented to finish exception support. There could be a major problem with the whole idea in Sparc environment: PC and NPC (next PC) can point to far away instructions, and NPC may be discovered only on execution phase.

For example (note delayed execution after return):
IN:
0xffd05254: retl
0xffd05258: lda [ %o0 ] (32), %o0

Faulting instruction is at 0xffd05258, so PC is the same at the exception, but NPC is already pointing back to code at calling function (0xffd090a0 from %o7 in this case). Current Search PC can find PC, but not NPC.

I'm not sure how to proceed. One path is to execute single instructions instead of basic blocks in Search PC mode. Any ideas? Fabrice?

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus