]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
target-ppc: Introduce callback for interrupt endianness
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Mon, 19 May 2014 17:59:05 +0000 (19:59 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:36 +0000 (13:24 +0200)
commit382d2db62bcb34dff7febc270783d5ff662ced7a
tree6997e3caabed16552509587067e8daa7713c8f11
parent0c967de9c00321f893a57617a4e3dfcda05266f5
target-ppc: Introduce callback for interrupt endianness

POWER7, POWER7+ and POWER8 families use the ILE bit of the LPCR
special purpose register to decide the endianness to use when
entering interrupt handlers. When running a Linux guest, this
provides a hint on the endianness used by the kernel. And when
it comes to dumping a guest, the information is needed to write
ELF headers using the kernel endianness.

Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
[agraf: change subject line]
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/cpu-qom.h
target-ppc/translate_init.c