Skip to contentSkip to conversation

usermode emulation for ppc host

Qemu-devel Antonio Vargas 2 participants 3 messages Aug 30, 2005 – Aug 31, 2005

lore
Share & tools
lore
#0 lore raw

Having a look at the sources, I've noticed that extra ppc registers are only used when doing usermode-inly emulation and not when doing fullsystem-mode. Can anyone tell me where should I look for problems when disabling that restriction? I've already tried to enable the use of these registers but of course it's there for some reason as it doesn't boot anything when I enable them.

Signature · 5 lines
Greetz, Antonio Vargas aka winden of network

http://wind.codepixel.com/

Las cosas no son lo que parecen, excepto cuando parecen lo que si son.
#1 lore raw
Quoted 6 lines · Antonio Vargas

Having a look at the sources, I've noticed that extra ppc registers are only used when doing usermode-inly emulation and not when doing fullsystem-mode. Can anyone tell me where should I look for problems when disabling that restriction? I've already tried to enable the use of these registers but of course it's there for some reason as it doesn't boot anything when I enable them.

OK.. more inspection has revealed ppc/op_helper.c which states:

"XXX: fix it to restore all registers"

looks like registers could be smashed when entering it and not being saved/restored by gcc??? will have to find out more...

Signature · 5 lines
Greetz, Antonio Vargas aka winden of network

http://wind.codepixel.com/

Las cosas no son lo que parecen, excepto cuando parecen lo que si son.
#2 lore raw
Quoted 8 lines · Antonio Vargas
Quoted 6 lines · Antonio Vargas

Having a look at the sources, I've noticed that extra ppc registers are only used when doing usermode-inly emulation and not when doing fullsystem-mode. Can anyone tell me where should I look for problems when disabling that restriction? I've already tried to enable the use of these registers but of course it's there for some reason as it doesn't boot anything when I enable them.

Quoted 6 lines

OK.. more inspection has revealed ppc/op_helper.c which states:

"XXX: fix it to restore all registers"

looks like registers could be smashed when entering it and not being saved/restored by gcc??? will have to find out more...

Do you mean PPC host or target ?
target-ppc subdirectory is used when emulating a PowerPC, that is for PPC target.
If you really talk about PowerPC host emulation, not PowerPC target, then target-ppc subdirectory code is not concerned.

Signature · 2 lines
J. Mayer <[email protected]>
Never organized