QEMU With E2K User Support
Go to file
David Gibson b632a148b6 target-ppc: Use QOM method dispatch for MMU fault handling
After previous cleanups, the many scattered checks of env->mmu_model in
the ppc MMU implementation have, at least for "classic" hash MMUs been
reduced (almost) to a single switch at the top of
cpu_ppc_handle_mmu_fault().

An explicit switch is still a pretty ugly way of handling this though.  Now
that Andreas Färber's CPU QOM cleanups for ppc have gone in, it's quite
straightforward to instead make the handle_mmu_fault function a QOM method
on the CPU object.

This patch implements such a scheme, initializing the method pointer at
the same time as the mmu_model variable.  We need to keep the latter around
for now, because of the MMU types (BookE, 4xx, et al) which haven't been
converted to the new scheme yet, and also for a few other uses.  It would
be good to clean those up eventually.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
2013-03-22 15:28:53 +01:00
audio audio: Replace non-portable asprintf in debug code by g_strdup_printf 2013-01-16 12:03:26 -06:00
backends chardev: add braille support to qapi 2013-03-13 10:27:46 +01:00
block qcow2: Fix segfault in qcow2_invalidate_cache 2013-03-19 11:48:36 +01:00
bsd-user qemu-log: default to stderr for logging output 2013-02-26 13:31:47 -06:00
default-configs pl330: Initial version 2013-03-15 16:41:58 +00:00
disas Replace all setjmp()/longjmp() with sigsetjmp()/siglongjmp() 2013-02-23 16:11:19 +00:00
docs migration: move rate limiting to QEMUFile 2013-03-11 13:32:02 +01:00
fpu softfloat: Handle float_muladd_negate_c when product is zero 2013-01-26 13:22:09 +00:00
fsdev virtfs-proxy-helper: Fix unchecked strdup() by conv. to g_strdup() 2013-01-30 11:14:46 +01:00
gdb-xml
hw mmu-hash*: Add hash pte load/store helpers 2013-03-22 15:28:48 +01:00
include char: Fix return type of qemu_chr_fe_add_watch() 2013-03-19 07:56:07 -05:00
ldscripts
libcacard libcacard: Fix unchecked strdup() by converting to g_strdup() 2013-01-30 11:14:46 +01:00
linux-headers linux-headers: resync from mainline to add ARM KVM headers 2013-03-05 00:34:40 +00:00
linux-user linux-user/syscall.c: Don't warn about unimplemented get_robust_list 2013-03-11 14:35:08 +02:00
net net: reduce the unnecessary memory allocation of multiqueue 2013-02-27 16:10:47 +01:00
pc-bios Add efi rom binaries 2013-03-18 10:21:56 +01:00
pixman@97336fad32
po ui/gtk: Use menu item from stock for full screen 2013-02-22 14:49:00 -06:00
qapi qapi: Fix unchecked strdup() by converting to g_strdup() 2013-01-30 11:14:46 +01:00
qga qga/main.c: Don't use g_key_file_get/set_int64 2013-03-15 08:23:54 -05:00
QMP
qobject Add qdict_clone_shallow() 2013-03-15 16:07:49 +01:00
qom exec: Pass CPUState to cpu_reset_interrupt() 2013-03-12 10:35:55 +01:00
roms Add Makefile rules to build nic rom binaries with efi support 2013-03-18 10:21:56 +01:00
scripts make_device_config.sh: Emit dependency file to directory where included 2013-03-09 12:00:03 +00:00
slirp move socket_set_nodelay to osdep.c 2013-03-04 09:54:17 +01:00
stubs stubs: Add a vmstate_dummy struct for CONFIG_USER_ONLY 2013-03-12 10:35:54 +01:00
sysconfigs/target
target-alpha cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
target-arm target-arm: Override do_interrupt for ARMv7-M profile 2013-03-12 10:35:55 +01:00
target-cris cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
target-i386 cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
target-lm32 target-lm32: Update VMStateDescription to LM32CPU 2013-03-12 10:35:55 +01:00
target-m68k cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
target-microblaze microblaze: Ignore non-cpu accesses to unmapped areas 2013-03-19 17:34:47 +01:00
target-mips target-mips: fix rndrashift_short_acc and code for EXTR_ instructions 2013-03-17 01:06:34 +01:00
target-openrisc cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
target-ppc target-ppc: Use QOM method dispatch for MMU fault handling 2013-03-22 15:28:53 +01:00
target-s390x s390: Fix cpu refactoring fallout. 2013-03-17 20:01:31 +00:00
target-sh4 cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
target-sparc cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
target-unicore32 cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
target-xtensa cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
tcg Handle CPU interrupts by inline checking of a flag 2013-03-03 14:28:47 +00:00
tests qemu-iotests: add 052 BDRV_O_SNAPSHOT test 2013-03-19 11:48:37 +01:00
tpm Add support for cancelling of a TPM command 2013-03-12 13:40:55 -05:00
trace trace: deal with deprecated glib thread functions 2013-02-12 16:26:44 -06:00
ui ui/cocoa.m: Fix compile failures introduced by recent console changes 2013-03-19 07:59:39 -05:00
util iov: Factor out hexdumper 2013-03-15 16:41:58 +00:00
.exrc
.gitignore .gitignore: Ignore optionrom/*.asm 2013-02-21 10:38:07 +01:00
.gitmodules
.mailmap
aio-posix.c aio: support G_IO_HUP and G_IO_ERR 2013-02-21 16:17:31 -06:00
aio-win32.c aio: Fix return value of aio_poll() 2013-01-17 10:51:42 +01:00
arch_init.c page_cache: dup memory on insert 2013-03-11 13:32:03 +01:00
async.c aio: add a ThreadPool instance to AioContext 2013-03-15 16:07:50 +01:00
balloon.c
block-migration.c migration: run setup callbacks out of big lock 2013-03-11 13:32:01 +01:00
block.c block: fix BDRV_O_SNAPSHOT protocol detection 2013-03-19 11:48:37 +01:00
blockdev-nbd.c
blockdev.c blockdev: Fix up copyright and permission notice 2013-03-15 16:07:51 +01:00
blockjob.c
bt-host.c
bt-vhci.c
Changelog
cmd.c
cmd.h
CODING_STYLE
configure Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging 2013-03-14 14:50:21 -05:00
COPYING
COPYING.LIB
coroutine-gthread.c
coroutine-sigaltstack.c Merge remote-tracking branch 'kwolf/for-anthony' into staging 2013-02-26 07:44:39 -06:00
coroutine-ucontext.c Merge remote-tracking branch 'kwolf/for-anthony' into staging 2013-02-26 07:44:39 -06:00
coroutine-win32.c
cpu-exec.c cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
cpus.c cpu: Pass CPUState to cpu_interrupt() 2013-03-12 10:35:55 +01:00
cputlb.c cpu: Move current_tb field to CPUState 2013-02-16 14:51:00 +01:00
device_tree.c
device-hotplug.c hw: move device-hotplug.o to toplevel, compile it once 2013-03-01 13:57:13 +01:00
disas.c
dma-helpers.c
dump-stub.c
dump.c cpu: Move host_tid field to CPUState 2013-02-16 14:50:59 +01:00
exec.c Merge remote-tracking branch 'afaerber/qom-cpu' into staging 2013-03-14 14:50:58 -05:00
gdbstub.c PPC/GDB: handle read and write of fpscr 2013-03-22 15:28:46 +01:00
HACKING
hmp-commands.hx Revert "hmp: Disable chardev-add and chardev-remove" 2013-03-13 10:27:47 +01:00
hmp.c Support for TPM command line options 2013-03-12 13:40:11 -05:00
hmp.h Support for TPM command line options 2013-03-12 13:40:11 -05:00
iohandler.c iohandler: switch to GPollFD 2013-02-21 16:17:31 -06:00
ioport.c
kvm-all.c cpu: Pass CPUState to cpu_interrupt() 2013-03-12 10:35:55 +01:00
kvm-stub.c kvm: Pass CPUState to kvm_on_sigbus_vcpu() 2013-01-28 16:57:56 +01:00
LICENSE
main-loop.c main-loop: add qemu_get_aio_context() 2013-03-15 16:07:50 +01:00
MAINTAINERS s390: virtio-ccw maintainer 2013-03-08 21:17:46 +01:00
Makefile Fix TAGS creation 2013-03-15 11:36:49 -05:00
Makefile.objs Support for TPM command line options 2013-03-12 13:40:11 -05:00
Makefile.target build: always link device_tree.o into emulators if libfdt available 2013-03-01 15:01:19 +01:00
memory_mapping-stub.c
memory_mapping.c
memory.c memory: Use non-bitops ctzl 2013-02-16 11:12:13 +00:00
migration-exec.c migration: eliminate s->migration_file 2013-03-11 13:32:03 +01:00
migration-fd.c migration: eliminate s->migration_file 2013-03-11 13:32:03 +01:00
migration-tcp.c migration: eliminate s->migration_file 2013-03-11 13:32:03 +01:00
migration-unix.c migration: eliminate s->migration_file 2013-03-11 13:32:03 +01:00
migration.c migration: inline migrate_fd_close 2013-03-11 13:32:03 +01:00
monitor.c target-ppc: Remove vestigial PowerPC 620 support 2013-03-22 15:28:46 +01:00
nbd.c
os-posix.c
os-win32.c
page_cache.c page_cache: dup memory on insert 2013-03-11 13:32:03 +01:00
qapi-schema-test.json
qapi-schema.json chardev: add udp support to qapi 2013-03-13 10:27:46 +01:00
qdev-monitor.c hw: move qdev-monitor.o to toplevel directory 2013-03-01 13:54:10 +01:00
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c char: Fix return type of qemu_chr_fe_add_watch() 2013-03-19 07:56:07 -05:00
qemu-coroutine-io.c
qemu-coroutine-lock.c coroutine: use AioContext for CoQueue BH 2013-03-15 16:07:51 +01:00
qemu-coroutine-sleep.c
qemu-coroutine.c coroutine: move pooling to common code 2013-02-22 21:21:10 +01:00
qemu-doc.texi sheepdog: add support for connecting to unix domain socket 2013-03-04 09:54:17 +01:00
qemu-img-cmds.hx qemu-img: Add compare subcommand 2013-02-22 21:21:10 +01:00
qemu-img.c block: Add options QDict to bdrv_open() prototype 2013-03-15 16:07:49 +01:00
qemu-img.texi qemu-img: Add compare subcommand 2013-02-22 21:21:10 +01:00
qemu-io.c block: Add options QDict to bdrv_open() prototype 2013-03-15 16:07:49 +01:00
qemu-log.c qemu-log: default to stderr for logging output 2013-02-26 13:31:47 -06:00
qemu-nbd.c block: Add options QDict to bdrv_open() prototype 2013-03-15 16:07:49 +01:00
qemu-nbd.texi qemu-nbd: add --discard option 2013-02-22 21:29:43 +01:00
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx add a boot option to do strict boot 2013-03-19 08:00:10 -05:00
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c
qemu.sasl
qmp-commands.hx Support for TPM command line options 2013-03-12 13:40:11 -05:00
qmp.c
qtest.c qtest: Add MMIO support 2013-02-18 08:39:10 -06:00
readline.c readline: Fix unchecked strdup() by converting to g_strdup() 2013-01-30 11:14:46 +01:00
README
rules.mak rules/mak: make clean should blow away timestamp files 2013-01-30 01:31:08 +02:00
savevm.c vmstate: Make vmstate_register() static inline 2013-03-12 10:35:54 +01:00
spice-qemu-char.c spice-qemu-char: Remove dead debugging code 2013-03-14 09:46:18 +01:00
tcg-runtime.c tcg: Implement multiword multiply helpers 2013-02-23 17:25:28 +00:00
tci.c
thread-pool.c threadpool: drop global thread pool 2013-03-15 16:07:51 +01:00
thunk.c
trace-events console: rework DisplaySurface handling [vga emu side] 2013-03-18 10:21:58 +01:00
translate-all.c cpu: Pass CPUState to cpu_interrupt() 2013-03-12 10:35:55 +01:00
translate-all.h cputlb: Pass CPUState to cpu_unlink_tb() 2013-02-16 14:51:00 +01:00
user-exec.c Replace all setjmp()/longjmp() with sigsetjmp()/siglongjmp() 2013-02-23 16:11:19 +00:00
VERSION Open up 1.5 development tree 2013-02-15 17:40:56 -06:00
version.rc
vl.c add a boot option to do strict boot 2013-03-19 08:00:10 -05:00
xbzrle.c Move XBZRLE encoding code to a separate file to allow testing 2013-02-01 08:32:20 +01:00
xen-all.c cpu: Move halted and interrupt_request fields to CPUState 2013-03-12 10:35:55 +01:00
xen-mapcache.c
xen-stub.c

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team