0b8fa32f55
Include qemu/module.h where needed, drop it from qemu-common.h
...
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20190523143508.25387-4-armbru@redhat.com >
[Rebased with conflicts resolved automatically, except for
hw/usb/dev-hub.c hw/misc/exynos4210_rng.c hw/misc/bcm2835_rng.c
hw/misc/aspeed_scu.c hw/display/virtio-vga.c hw/arm/stm32f205_soc.c;
ui/cocoa.m fixed up]
2019-06-12 13:18:33 +02:00
7506ed902e
cpu: Introduce cpu_set_cpustate_pointers
...
Consolidate some boilerplate from foo_cpu_initfn.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2019-06-10 07:03:42 -07:00
0137c93ff8
target/nios2: Convert to CPUClass::tlb_fill
...
Remove the leftover debugging cpu_dump_state.
Cc: Chris Wulff <crwulff@gmail.com >
Cc: Marek Vasut <marex@denx.de >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2019-05-10 11:12:50 -07:00
bf85388169
qdev: use device_class_set_parent_realize/unrealize/reset()
...
changes generated using the following Coccinelle patch:
@@
type DeviceParentClass;
DeviceParentClass *pc;
DeviceClass *dc;
identifier parent_fn;
identifier child_fn;
@@
(
+device_class_set_parent_realize(dc, child_fn, &pc->parent_fn);
-pc->parent_fn = dc->realize;
...
-dc->realize = child_fn;
|
+device_class_set_parent_unrealize(dc, child_fn, &pc->parent_fn);
-pc->parent_fn = dc->unrealize;
...
-dc->unrealize = child_fn;
|
+device_class_set_parent_reset(dc, child_fn, &pc->parent_fn);
-pc->parent_fn = dc->reset;
...
-dc->reset = child_fn;
)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180114020412.26160-4-f4bug@amsat.org >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
Acked-by: David Gibson <david@gibson.dropbear.id.au >
Acked-by: Cornelia Huck <cohuck@redhat.com >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2018-02-05 13:54:38 +01:00
55c3ceef61
qom: Introduce CPUClass.tcg_initialize
...
Move target cpu tcg initialization to common code,
called from cpu_exec_realizefn.
Acked-by: Andreas Färber <afaerber@suse.de >
Reviewed-by: Emilio G. Cota <cota@braap.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2017-10-24 22:00:13 +02:00
da9cbe02bc
nios2: replace cpu_nios2_init() with cpu_generic_init()
...
cpu_nios2_init() always falls back to TYPE_NIOS2_CPU object
regardless of cpu_model. Put fallback logic into
nios2_cpu_class_by_name() which would translate any cpu_model
into TYPE_NIOS2_CPU class and replace cpu_nios2_init()
with cpu_generic_init()
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <1503592308-93913-14-git-send-email-imammedo@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2017-09-01 11:54:24 -03:00
032c76bc6f
nios2: Add architecture emulation support
...
Add support for emulating Altera NiosII R1 architecture into qemu.
This patch is based on previous work by Chris Wulff from 2012 and
updated to latest mainline QEMU.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Chris Wulff <crwulff@gmail.com >
Cc: Jeff Da Silva <jdasilva@altera.com >
Cc: Ley Foon Tan <lftan@altera.com >
Cc: Sandra Loosemore <sandra@codesourcery.com >
Cc: Yves Vandervennet <yvanderv@altera.com >
Cc: Alexander Graf <agraf@suse.de >
Message-Id: <20170118220146.489-3-marex@denx.de >
[rth: Remove tlb_flush from nios2_cpu_reset.]
Signed-off-by: Richard Henderson <rth@twiddle.net >
2017-01-24 13:10:35 -08:00