Statistics
| Branch: | Revision:

root / target-ppc @ 16415335

Name Size
STATUS 10.6 kB
cpu.h 67.2 kB
exec.h 1.6 kB
helper.c 93.8 kB
helper.h 14.3 kB
helper_regs.h 3.4 kB
kvm.c 5.1 kB
kvm_ppc.c 2.6 kB
kvm_ppc.h 434 Bytes
machine.c 5.7 kB
mfrom_table.c 3.3 kB
mfrom_table_gen.c 652 Bytes
op_helper.c 124 kB
translate.c 334.6 kB
translate_init.c 413.5 kB

Latest revisions

# Date Author Comment
16415335 07/22/2009 06:58 pm Alexander Graf

Use correct input constant

440 and desktop codes use different input constants for interrupt indication.

Let's use the respective ones for KVM.

Signed-off-by: Alexander Graf <>
Signed-off-by: Anthony Liguori <>

861bbc80 07/22/2009 06:58 pm Alexander Graf

Set PVR in sregs

We need to tell the kernel about some initial CPU state we don't have yet,
so let's use the "sregs" IOCTL for that and simply put the Processor Version
Register in there.

Now the kernel knows which guest CPU to virtualize.

Signed-off-by: Alexander Graf <>...

0bf9e31a 07/20/2009 08:19 pm Blue Swirl

Fix most warnings (errors with -Werror) when debugging is enabled

I used the following command to enable debugging:
perl -p -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' * /* *//*

Signed-off-by: Blue Swirl <>

8167ee88 07/16/2009 11:47 pm Blue Swirl

Update to a hopefully more future proof FSF address

Signed-off-by: Blue Swirl <>

f4078236 07/13/2009 02:58 am Baojun Wang

target-ppc: enable PPC_MFTB for 44x

According to PPC440 user manual, PPC 440 supports ``mftb'' even it's a
preserved instruction:

PPC440_UM2013.pdf, p.445, table A-3

when I compile a kernel (2.6.30, bamboo_defconfig/440EP &
canyonlands/460EX), I can see ``mftb'' by using ppc-xxx-objdump...

fbe73008 07/13/2009 02:51 am Baojun Wang

ppc tcg: fix wrong bit/mask of wrteei

Signed-off-by: Baojun Wang <>
Signed-off-by: Aurelien Jarno <>

33890b3e 07/13/2009 12:36 am Nathan Froyd

target-ppc: fix evmergelo and evmergelohi

For 32-bit PPC targets, we translated:

evmergelo rX, rX, rY

as:

rX-lo = rY-lo
rX-hi = rX-lo

which is wrong, because we should be transferring rX-lo first. This
problem is fixed by swapping the order in which we write the parts of...

a139aa17 06/23/2009 08:11 pm Nathan Froyd

target-ppc: permit linux-user to read PVR

Access to the PVR SPR is normally forbidden from userspace apps. The
Linux kernel, however, fixes up reads in the appropriate trap handler.
To permit applications that read PVR to run on QEMU, then, we need to
implement the same handling of PVR reads....

d2e9fd8f 06/20/2009 04:51 am malc

Apply TCGV_UNUSED on variables that GCC mistakenly thinks can be used
uninitialized

5c55ff99 06/17/2009 06:22 pm Blue Swirl

Replace ELF section hack with normal table

Signed-off-by: Blue Swirl <>

View revisions

Also available in: Atom