PPC: booke timers
While working on the emulation of the freescale p2010 (e500v2) I realized thatthere's no implementation of booke's timers features. Currently mpc8544 usesppc_emb (ppc_emb_timers_init) which is close but not exactly like booke (forexample booke uses different SPR)....
PPC: Clean up BookE timer code
The BookE timer code had some written-but-not-read variables. Get ridof them.
Signed-off-by: Alexander Graf <agraf@suse.de>
pseries: Refactor spapr irq allocation
Paulo Bonzini changed the original spapr code, which manually assigned irqnumbers for each virtual device, to allocate them automatically from thedevice initialization. That allowed spapr virtual devices to be constructed...
pseries: Implement set-time-of-day RTAS function
Currently there is no implementation for set-time-of-day rtas function,which causes the following warning "setting the clock failed (-1)" onthe guest.
This patch just creates this function, get the timedate diff and store in...
openpic: Unfold write_IRQreg
The helper function write_IRQreg was always called with a specific argument onthe type of register to access. Inside the function we were simply doing aswitch on that constant argument again. It's a lot easier to just unfold this...
ppc: move ADB stuff from ppc_mac.h to adb.h
Allow to use ADB in non-ppc macintosh
Signed-off-by: Laurent Vivier <laurent@vivier.eu>Signed-off-by: Alexander Graf <agraf@suse.de>
PPC: Fix via-cuda memory registration
Commit 23c5e4ca (convert to memory API) broke the VIA Cuda emulation layerby not registering the IO structs.
This patch registers them properly and thus makes -M g3beige and -M mac99work again.
Tested-by: Andreas Färber <andreas.faerber@web.de>...
PPC: Fix heathrow PIC to use little endian MMIO
During the memory API conversion, the indication on little endianness ofMMIO for the heathrow PIC got dropped. This patch adds it back again.
ppc405: use RAM_ADDR_FMT instead of %08lx
The RAM_ADDR_FMT macro hides the type of ram_addr_t so that formatstrings can be safely used. Make sure to use RAM_ADDR_FMT so that thebuild works on 32-bit hosts with Xen enabled. Whether Xen should affectppc TCG targets is questionable but a separate issue....
openpic: Unfold read_IRQreg
The helper function read_IRQreg was always called with a specific argument onthe type of register to access. Inside the function we were simply doing aswitch on that constant argument again. It's a lot easier to just unfold this...
View revisions
Also available in: Atom