Statistics
| Branch: | Revision:

root @ 834574ea

# Date Author Comment
22bc9a46 02/22/2013 12:34 am Anthony Liguori

build: disable Wstrict-prototypes

GTK won't build with strict-prototypes due to gtkitemfactory.h:

/* We use () here to mean unspecified arguments. This is deprecated
 * as of C99, but we can't change it without breaking compatibility.
 * (Note that if we are included from a C++ program () will mean...
d82831db 02/22/2013 12:34 am Anthony Liguori

console: allow VCs to be overridden by UI

We want to expose VCs using a VteTerminal widget. We need access to provide our
own CharDriverState in order to do this.

Signed-off-by: Anthony Liguori <>
Message-id:

a4ccabcf 02/22/2013 12:34 am Anthony Liguori

ui: add basic GTK gui (v5)

This is minimalistic and just contains the basic widget infrastructure. The GUI
consists of a menu and a GtkNotebook. To start with, the notebook has its tabs
hidden which provides a UI that looks very similar to SDL with the exception of...

d861def3 02/22/2013 12:34 am Anthony Liguori

gtk: add virtual console support (v2)

This enables VteTerminal to be used to render the text consoles. VteTerminal is
the same widget used by gnome-terminal which means it's VT100 emulation is as
good as they come.

It's also screen reader accessible, supports copy/paste, proper scrolling and...

5104a1f6 02/22/2013 12:34 am Anthony Liguori

gtk: add support for input grabbing (v2)

There is a small deviation from SDL's behavior here. Instead of Ctrl+Alt
triggering grab, we now use Ctrl-Alt-g to trigger grab.

GTK will not accept Ctrl+Alt as an accelerator since it just consists of
modifiers. Having grab as a proper accelerator is important as it allows a user...

c6158483 02/22/2013 12:34 am Anthony Liguori

gtk: add support for screen scaling and full screen (v5)

Basic menu items to enter full screen mode and zoom in/out. Unlike SDL, we
don't allow arbitrary scaling based on window resizing. The current behavior
with SDL causes a lot of problems for me.

Sometimes I accidentally resize the window a tiny bit while trying to move it...

834574ea 02/22/2013 12:34 am Anthony Liguori

gtk: add translation support (v5)

This includes a de_DE translation from Kevin Wolf and an it translation from
Paolo Bonzini.

Cc: Paolo Bonzini <>
Cc: Kevin Wolf <>
Cc: Stefan Hajnoczi <>
Signed-off-by: Anthony Liguori <>...

3e407de4 02/22/2013 12:34 am Peter Crosthwaite

qom/object.c: Reset interface list on inheritance

The QOM framework will attempt the recreate a classes interface list from
scratch for each class. This means that a child class should zero out the
list of interfaces when cloned from the parent class.

Currently the list is memcpy()d from the parent to the child. As the interface...

00e2ceae 02/22/2013 12:34 am Peter Crosthwaite

qom/object.c: Allow itf cast with num_itfs = 0

num_interfaces only tells you how many interfaces the concrete child class has
(as defined in the TypeInfo). This means if you have a child class which defines
no interfaces of its own, but its parent has interfaces you cannot cast to those...

b1424e03 02/22/2013 12:34 am Gerd Hoffmann

vga: fix byteswapping.

In case host and guest endianness differ the vga code first creates
a shared surface (using qemu_create_displaysurface_from), then goes
patch the surface format to indicate that the bytes must be swapped.

The switch to pixman broke that hack as the format patching isn't...

ba43da36 02/22/2013 12:33 am Peter Maydell

Remove elderly top level TODO file

The top level TODO file hasn't been touched since 2008, so it's now
an unhelpful and out of date mix of things that have already been done,
things that don't make sense any more and things which could in theory
be done but are not in practice important enough (or we'd have done...

2ca81baa 02/22/2013 12:33 am Jason Wang

help: add docs for multiqueue tap options

Cc: Markus Armbruster <>
Cc: Jason Wang <>
Signed-off-by: Jason Wang <>
Message-id:
Signed-off-by: Anthony Liguori <>

8917c3bd 02/22/2013 12:17 am Stefan Hajnoczi

slirp: switch to GPollFD

Slirp uses rfds/wfds/xfds more extensively than other QEMU components.

The rarely-used out-of-band TCP data feature is used. That means we
need the full table of select(2) to g_poll(3) events:

rfds -> G_IO_IN | G_IO_HUP | G_IO_ERR...
a3e4b4a8 02/22/2013 12:17 am Stefan Hajnoczi

iohandler: switch to GPollFD

Convert iohandler_select_fill() and iohandler_select_poll() to use
GPollFD instead of rfds/wfds/xfds.

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Laszlo Ersek <>
Message-id: ...

9cbaacf9 02/22/2013 12:17 am Stefan Hajnoczi

main-loop: drop rfds/wfds/xfds for good

Now that all *_fill() and *_poll() functions use GPollFD we no longer
need rfds/wfds/xfds or pollfds_from_select()/pollfds_to_select().

From now on everything uses GPollFD.

Signed-off-by: Stefan Hajnoczi <>...

d0c8d2c0 02/22/2013 12:17 am Stefan Hajnoczi

aio: extract aio_dispatch() from aio_poll()

We will need to loop over AioHandlers calling >io_read()/>io_write()
when aio_poll() is converted from select(2) to g_poll(2).

Luckily the code for this already exists, extract it into the new
aio_dispatch() function....

6b5f8762 02/22/2013 12:17 am Stefan Hajnoczi

aio: convert aio_poll() to g_poll(3)

AioHandler already has a GPollFD so we can directly use its
events/revents.

Add the int pollfds_idx field to AioContext so we can map g_poll(3)
results back to AioHandlers.

Reuse aio_dispatch() to invoke handlers after g_poll(3)....

b5a01a70 02/22/2013 12:17 am Stefan Hajnoczi

aio: support G_IO_HUP and G_IO_ERR

aio-posix.c could not take advantage of G_IO_HUP and G_IO_ERR because
select(2) does not have equivalent events. Now that g_poll(3) is used
we can support G_IO_HUP and G_IO_ERR.

Signed-off-by: Stefan Hajnoczi <>...

134a03e0 02/22/2013 12:17 am Stefan Hajnoczi

main-loop: fix select_ret uninitialized variable warning

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Laszlo Ersek <>
Message-id:
Signed-off-by: Anthony Liguori <>

cbff4b34 02/22/2013 12:17 am Stefan Hajnoczi

main-loop: switch to g_poll() on POSIX hosts

Use g_poll(3) instead of select(2). Well, this is kind of a cheat.
It's true that we're now using g_poll(3) on POSIX hosts but the *_fill()
and *_poll() functions are still using rfds/wfds/xfds.

We've set the scene to start converting *_fill() and *_poll() functions...

48ce11ff 02/22/2013 12:17 am Stefan Hajnoczi

main-loop: switch POSIX glib integration to GPollFD

Convert glib file descriptor polling from rfds/wfds/xfds to GPollFD.

The Windows code still needs poll_fds[] and n_poll_fds but they can now
become local variables.

Signed-off-by: Stefan Hajnoczi <>...

cf1d078e 02/22/2013 12:17 am Stefan Hajnoczi

slirp: slirp/slirp.c coding style cleanup

The slirp glue code uses tabs in some places. Since the next patch will
modify the file, convert tabs to spaces and fix checkpatch.pl issues.

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Laszlo Ersek <>...

70aa41b5 02/21/2013 05:39 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.78' into staging

  1. By Gerd Hoffmann
  2. Via Gerd Hoffmann
    • kraxel/usb.78:
      uas-uas: usb3 streams
      usb-xhci: usb3 streams
      usb-core: usb3 streams
      usb: fix endpoint descriptor ordering
      usb-redir: simplify packet copy...
259dc0c1 02/21/2013 05:38 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  1. By Alin Tomescu (1) and others
  2. Via Stefan Hajnoczi
    • stefanha/trivial-patches:
      .gitignore: Ignore optionrom/*.asm
      ppc: fix bamboo >256MB RAM initialization in hw/ppc4xx_devs.c
      Add some missing qtest binaries to .gitignore...
159c9836 02/21/2013 11:38 am Cole Robinson

.gitignore: Ignore optionrom/*.asm

Signed-off-by: Cole Robinson <>
Signed-off-by: Stefan Hajnoczi <>

11e5d738 02/21/2013 11:34 am Alin Tomescu

ppc: fix bamboo >256MB RAM initialization in hw/ppc4xx_devs.c

I was trying to launch a PowerPC "bamboo" machine with more than 256MB of RAM
with qemu-system-ppc -M bamboo -kernel $kernel -initrd $ramdisk -m 512, but QEMU
would just hang. However, when I used -m 256, the machine would boot....

499a6165 02/21/2013 11:33 am David Gibson

Add some missing qtest binaries to .gitignore

These binaries are generated during make check on at least some
configurations, so att them to .gitignore.

Signed-off-by: David Gibson <>
Signed-off-by: Stefan Hajnoczi <>

87f1361c 02/21/2013 11:33 am Hervé Poussineau

Remove forward declaration of non-existant variable

This variable has been removed 5 years ago in 970ac5a3082428dca91171f270dcd95d6f4b2636.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Stefan Hajnoczi <>

b15aaca4 02/21/2013 11:33 am Peter Crosthwaite

xilinx_axienet.c: Assert no error when making link

This gives an awful silent failure when it doesn't work. Assert against link
creation failure.

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Stefan Hajnoczi <>

89a453d4 02/19/2013 02:18 pm Gerd Hoffmann

uas-uas: usb3 streams

Add usb3 streams support to the uas (usb attached scsi) emulation.

Signed-off-by: Gerd Hoffmann <>

024426ac 02/19/2013 02:17 pm Gerd Hoffmann

usb-xhci: usb3 streams

Add streams support to the xhci emulation. No secondary streams yet,
only linear stream arays are supported for now.

Signed-off-by: Gerd Hoffmann <>

4075975d 02/19/2013 01:30 pm Gerd Hoffmann

usb-host: move legacy cmd line bits

The code handling the "-usbdevice host:..." legacy command line
syntax is moved to the new hw/usb/host-legacy.c file.

Signed-off-by: Gerd Hoffmann <>

1a3973b3 02/19/2013 01:30 pm Gerd Hoffmann

usb-host: remove usb_host_device_close

Nobody implements that anyway.

Signed-off-by: Gerd Hoffmann <>

e382d966 02/19/2013 01:30 pm Gerd Hoffmann

usb: add usb_ep_set_halted

Signed-off-by: Gerd Hoffmann <>

6a98d1c0 02/19/2013 01:30 pm Gerd Hoffmann

usb: make usb_packet_copy operate on combined packets

Likewise usb_packet_skip.
Also usb_packet_size.

Signed-off-by: Gerd Hoffmann <>

6ef3ccd1 02/19/2013 01:30 pm Gerd Hoffmann

usb-redir: simplify packet copy

usb_packet_copy can handle combined packets now,
so it isn't needed to special-case them any more.

Also use the new usb_packet_size() function.

Signed-off-by: Gerd Hoffmann <>

2e5df36d 02/19/2013 01:30 pm Gerd Hoffmann

usb: fix endpoint descriptor ordering

Fix the ordering of the endpoint descriptors for superspeed endpoints:
The superspeed companion must come first, possible additional
descriptors for the endpoint after that.

Signed-off-by: Gerd Hoffmann <>

8550a02d 02/19/2013 01:30 pm Gerd Hoffmann

usb-core: usb3 streams

This patch adds support for usb3 streams to the usb subsystem core.
This is just adding a streams field / parameter in a number of places.

Signed-off-by: Gerd Hoffmann <>

07d17e77 02/19/2013 01:30 pm Gerd Hoffmann

allow disabling usb smartcard support

Signed-off-by: Gerd Hoffmann <>

9db7c414 02/19/2013 01:30 pm Gerd Hoffmann

usb-storage: use scsi_req_enqueue return value

Signed-off-by: Gerd Hoffmann <>

6c83f815 02/19/2013 01:28 pm Gerd Hoffmann

make usb devices configurable

Leave the core usb devices (usb hub, tablet, mouse, keyboard)
enabled unconditionally. Make the other ones configurable.

Exceptions:
- bluetooth: not qdevified yet, has a vl.c dependency because
of that, thus disabling isn't as easy as not linking the...

f4ece404 02/19/2013 12:53 pm Gerd Hoffmann

fix scripts/make_device_config.sh

Make it handle multiple include statements in a file:

(1) The printf needs a space so the include files will be separated.
(2) Also $f can contain multiple failes, so redirection will not work
and we have to use cat to process all files....
62162fff 02/19/2013 10:51 am Gerd Hoffmann

usb: Makefile cleanup

Group files, sprinkle in some comments.

Signed-off-by: Gerd Hoffmann <>

f9b3ed40 02/18/2013 06:20 pm Paolo Bonzini

rtc-test: always set register B in its entirety

Eliminate dependencies between one test and the others.

Signed-off-by: Paolo Bonzini <>
Message-id:
Signed-off-by: Anthony Liguori <>

cc2832a5 02/18/2013 06:20 pm Paolo Bonzini

rtc-test: add testcases for alarms in 12hour mode

Trying (unsuccessfully) to break the device model as mentioned in
https://bugs.launchpad.net/qemu/+bug/1090558.

At least if someone tries to fix that, it won't break what works...

Signed-off-by: Paolo Bonzini <>...

7d2a929f 02/18/2013 04:40 pm Andre Przywara

vnc-tls: Fix compilation with newer versions of GNU-TLS

In my installation of GNU-TLS (v3.0.23) the type
gnutls_anon_server_credentials is marked deprecated, so -Werror
breaks compilation.
Simply replacing it with the newer ..._t version fixed the compilation...

6265c43b 02/18/2013 04:39 pm Markus Armbruster

doc: Fill some option doc gaps in manual page and qemu-doc

Signed-off-by: Markus Armbruster <>
Reviewed-by: Stefan Hajnoczi <>
Message-id:
Signed-off-by: Anthony Liguori <>

c70a01e4 02/18/2013 04:39 pm Markus Armbruster

doc: Fix texinfo @table markup in qemu-options.hx

End tables before headings, start new ones afterwards. Fixes
incorrect indentation of headings "File system options" and "Virtual
File system pass-through options" in manual page and qemu-doc.

Normalize markup some to increase chances it survives future edits....

f0378099 02/18/2013 04:39 pm Markus Armbruster

help: Fix markup of heading "USB options" so it appears in -help

Signed-off-by: Markus Armbruster <>
Reviewed-by: Stefan Hajnoczi <>
Message-id:
Signed-off-by: Anthony Liguori <>

84644c45 02/18/2013 04:39 pm Markus Armbruster

doc help: A few options are under inappropriate headings, fix

--device is under heading "USB options". --name and --uuid are under
"Virtual File system pass-through options". Move all three to
"Standard options".

Signed-off-by: Markus Armbruster <>...

10adb8be 02/18/2013 04:39 pm Markus Armbruster

doc help: Collect block device stuff under its own heading

Collect them from "Standard options", "File system options", "Virtual
File system pass-through options", "Debug/Expert options".

Signed-off-by: Markus Armbruster <>
Reviewed-by: Stefan Hajnoczi <>...

31e70d6c 02/18/2013 04:39 pm Markus Armbruster

help: Drop bogus help on -qtest and -qtest-log

Signed-off-by: Markus Armbruster <>
Reviewed-by: Stefan Hajnoczi <>
Message-id:
Signed-off-by: Anthony Liguori <>

b8f490eb 02/18/2013 04:39 pm Markus Armbruster

doc: Fix some option entries in qemu-doc's function index

Signed-off-by: Markus Armbruster <>
Reviewed-by: Stefan Hajnoczi <>
Message-id:
Signed-off-by: Anthony Liguori <>

c538ca66 02/18/2013 04:39 pm Andreas Färber

isa: Split off instance_init for ISADevice

Prepares for assigning IRQs before QOM realize.

Signed-off-by: Andreas Färber <>
Signed-off-by: Andreas Färber <>
Message-id:
Signed-off-by: Anthony Liguori <>

872536bf 02/18/2013 04:39 pm Andreas Färber

qtest: Add MMIO support

Introduce [qtest_]{read,write}[bwlq]() libqtest functions and
corresponding QTest protocol commands to replace local versions in
libi2c-omap.c.

Also convert m48t59-test's cmos_{read,write}_mmio() to {read,write}b().

Signed-off-by: Andreas Färber <>...

6acf801d 02/18/2013 04:39 pm Andreas Färber

libqtest: Convert macros to functions and clean up documentation

libqtest.h provides a number of shortcut macros to avoid tests feeding
it the QTestState they operate on. Most of these can easily be turned
into static inline functions, so let's do that for clarity....

b73cf9e9 02/18/2013 04:39 pm Andreas Färber

libqtest: Introduce qtest_qmpv() and convert remaining macro

In order to convert qmp() macro to an inline function, expose a
qtest_qmpv() function, reused by qtest_qmp().

We can't apply GCC_FMT_ATTR() since fdc-test is using zero-length format
strings, which would result in warnings treated as errors....

3c3adde0 02/18/2013 04:37 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/qom-cpu' into staging

  1. By Andreas Färber
  2. Via Andreas Färber
    • afaerber/qom-cpu: (47 commits)
      target-i386: Split command line parsing out of cpu_x86_register()
      target-i386: Move cpu_x86_init()
      target-lm32: Drop unused cpu_lm32_close() prototype...
ff7a1eb0 02/17/2013 04:28 pm Richard Henderson

host-utils: Improve mulu64 and muls64

The new formulation makes better use of add-with-carry type insns
that the host may have. Use gcc's sign adjustment trick to avoid
having to perform a 128-bit negation.

Signed-off-by: Richard Henderson <>...

f4c0f986 02/17/2013 04:28 pm Richard Henderson

tests: Add unit tests for mulu64 and muls64

Signed-off-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

f540166b 02/17/2013 04:28 pm Richard Henderson

host-utils: Use __int128_t for mul[us]64

Replace some x86_64 specific inline assembly with something that
all 64-bit hosts ought to optimize well. At worst this becomes
a call to the gcc __multi3 routine, which is no worse than our
implementation in util/host-utils.c....

be96bd3f 02/17/2013 04:27 pm Andreas Färber

tcg/ppc: Fix build of tcg_qemu_tb_exec()

Commit 0b0d3320db74cde233ee7855ad32a9c121d20eb4 (TCG: Final globals
clean-up) moved code_gen_prologue but forgot to update ppc code.
This broke the build on 32-bit ppc. ppc64 is unaffected.

Cc: Evgeny Voevodin <>...

05499f4b 02/16/2013 07:00 pm Andreas Färber

target-sparc: Fix debug output for DEBUG_MMU

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>
Signed-off-by: Blue Swirl <>

2d64255b 02/16/2013 03:51 pm Andreas Färber

target-i386: Split command line parsing out of cpu_x86_register()

In order to instantiate a CPU subtype we will need to know which type,
so move the cpu_model splitting into cpu_x86_init().

Parameters need to be set on the X86CPU instance, so move
cpu_x86_parse_featurestr() into cpu_x86_init() as well....

0315c31c 02/16/2013 03:51 pm Andreas Färber

cpu: Move running field to CPUState

Pass CPUState to cpu_exec_{start,end}() functions.

Signed-off-by: Andreas Färber <>

fcd7d003 02/16/2013 03:51 pm Andreas Färber

cpu: Move exit_request field to CPUState

Since it was located before breakpoints field, it needs to be reset.

Signed-off-by: Andreas Färber <>

d77953b9 02/16/2013 03:51 pm Andreas Färber

cpu: Move current_tb field to CPUState

Explictly NULL it on CPU reset since it was located before breakpoints.

Change vapic_report_tpr_access() argument to CPUState. This also
resolves the use of void* for cpu.h independence.
Change vAPIC patch_instruction() argument to X86CPU....

907a5e32 02/16/2013 03:51 pm Andreas Färber

cputlb: Pass CPUState to cpu_unlink_tb()

CPUArchState is no longer needed.

Signed-off-by: Andreas Färber <>

c05efcb1 02/16/2013 03:51 pm Andreas Färber

cpu: Add CPUArchState pointer to CPUState

The target-specific ENV_GET_CPU() macros have allowed us to navigate
from CPUArchState to CPUState. The reverse direction was not supported.
Avoid introducing CPU_GET_ENV() macros by initializing an untyped
pointer that is initialized in derived instance_init functions....

440c8152 02/16/2013 03:51 pm Andreas Färber

e500: Replace open-coded loop with qemu_get_cpu()

Since we still need env for ppc-specific fields, obtain it via the new
env_ptr fields to avoid "cpu" name conflicts between CPUState and
PowerPCCPU for now.

This fixes a potential issue with env being NULL at the end of the loop...

912ebe10 02/16/2013 03:51 pm Andreas Färber

ppce500_spin: Replace open-coded CPU loop with qemu_get_cpu()

Potentially env could be NULL whereas cpu would still be valid and
correspond to a previous env.

Wrapping this in qemu_get_cpu(), env is no longer needed, so simplify
code that existed before 55e5c2850293547203874098f7cec148ffd12dfa....

5353d03d 02/16/2013 03:51 pm Andreas Färber

spapr_hcall: Replace open-coded CPU loop with qemu_get_cpu()

The helper functions all access ppc-specific fields only so don't bother
to change arguments to PowerPCCPU and use env_ptr instead.

No functional change.

Acked-by: Alexander Graf <>...

0dac8459 02/16/2013 03:51 pm Andreas Färber

target-s390x: Drop unused cpu_s390x_close() prototype

It was never implemented.

Signed-off-by: Andreas Färber <>

0203f86f 02/16/2013 03:51 pm Andreas Färber

target-lm32: Drop unused cpu_lm32_close() prototype

It was never implemented.

Signed-off-by: Andreas Färber <>

5c3c6a68 02/16/2013 03:51 pm Andreas Färber

target-i386: Move cpu_x86_init()

Consolidate CPU functions in cpu.c.
Allows to make cpu_x86_register() static.

No functional changes.

Reviewed-by: Eduardo Habkost <>
Reviewed-by: Igor Mammedov <>
Signed-off-by: Andreas Färber <>

5266d20a 02/16/2013 03:50 pm Andreas Färber

target-sparc: Move TCG initialization to SPARCCPU initfn

Signed-off-by: Andreas Färber <>

d9c27f00 02/16/2013 03:50 pm Andreas Färber

target-unicore32: Move TCG initialization to UniCore32CPU initfn

Normalize the "inited" logic and add a tcg_enabled() check to suppress
it for qtest.

Ensures that a QOM-created UniCore32CPU is usable.

Acked-by: Guan Xuetao <>
Signed-off-by: Andreas Färber <>

25733ead 02/16/2013 03:50 pm Andreas Färber

target-xtensa: Move TCG initialization to XtensaCPU initfn

Combine this with breakpoint handler registration, guarding both with
tcg_enabled() to suppress also TCG init for qtest. Rename the handler to
xtensa_breakpoint_handler() since it needs to become global....

f3273ba6 02/16/2013 03:50 pm Andreas Färber

ppc405_uc: Pass PowerPCCPU to ppc40x_{core,chip,system}_reset()

Prepares for changing cpu_interrupt() argument to CPUState.

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

c7937d9f 02/16/2013 03:50 pm Andreas Färber

target-m68k: Return M68kCPU from cpu_m68k_init()

Turn cpu_init() into a static inline function for backwards
compatibility.

Signed-off-by: Andreas Färber <>

4025cfd5 02/16/2013 03:50 pm Andreas Färber

mcf5206: Pass M68kCPU to mcf5206_init()

Store it in m5206_mbar_state. Prepares for passing M68kCPU to
m68k_set_irq_level().

Signed-off-by: Andreas Färber <>

9a6ee9fd 02/16/2013 03:50 pm Andreas Färber

mcf_intc: Pass M68kCPU to mcf_intc_init()

Store it in mcf_intc_state.
Prepares for passing it to m68k_set_irq_level().

Signed-off-by: Andreas Färber <>

cb3fb38e 02/16/2013 03:50 pm Andreas Färber

target-m68k: Pass M68kCPU to m68k_set_irq_level()

Simplifies use of cpu_reset_interrupt() et al.

Signed-off-by: Andreas Färber <>

6ae064fc 02/16/2013 03:50 pm Andreas Färber

target-cris: Introduce CRISCPU subclasses

Use class_init functions to initialize the VR in preparation for
overriding v32+ behavior there.

Move cpu_cris_init() to cpu.c and hook up a class_by_name callback.

This change leads to unknown -cpu model names no longer falling back...

0d34282f 02/16/2013 03:50 pm Andreas Färber

cpu: Move host_tid field to CPUState

Change gdbstub's cpu_index() argument to CPUState now that CPUArchState
is no longer used.

Signed-off-by: Andreas Färber <>

79614b78 02/16/2013 03:50 pm Andreas Färber

target-arm: Move TCG initialization to ARMCPU initfn

Ensures that a QOM-created ARMCPU is usable.

Signed-off-by: Andreas Färber <>

d1a94fec 02/16/2013 03:50 pm Andreas Färber

target-cris: Move TCG initialization to CRISCPU initfn

Split out TCG initialization from cpu_cris_init(). Avoid CPUCRISState
dependency for v10-specific initialization and for non-v10 by inlining
the decision into the initfn as well.

Signed-off-by: Andreas Färber <>

868e2824 02/16/2013 03:50 pm Andreas Färber

target-lm32: Move TCG initialization to LM32CPU initfn

Signed-off-by: Andreas Färber <>

1cc89619 02/16/2013 03:50 pm Andreas Färber

target-m68k: Move TCG initialization to M68kCPU initfn

Add a tcg_enabled() check to suppress it for qtest.

Signed-off-by: Andreas Färber <>

cd0c24f9 02/16/2013 03:50 pm Andreas Färber

target-microblaze: Move TCG initialization to MicroBlazeCPU initfn

Split off TCG initialization from cpu_mb_init() into mb_tcg_init() to
call it from the initfn.

Ensures that a QOM-created MicroBlazeCPU is usable.

Signed-off-by: Andreas Färber <>

78ce64f4 02/16/2013 03:50 pm Andreas Färber

target-mips: Move TCG initialization to MIPSCPU initfn

Make mips_tcg_init() non-static and add tcg_enabled() check to suppress
it for qtest.

Signed-off-by: Andreas Färber <>

60925d26 02/16/2013 03:50 pm Andreas Färber

target-ppc: Move TCG initialization to PowerPCCPU initfn

Ensures that a QOM-created PowerPCCPU is usable.

Signed-off-by: Andreas Färber <>

2b7ac767 02/16/2013 03:50 pm Andreas Färber

target-s390x: Move TCG initialization to S390CPU initfn

Ensures that a QOM-created S390CPU is usable.

Acked-by: Richard Henderson <>
Signed-off-by: Andreas Färber <>

aa7408ec 02/16/2013 03:50 pm Andreas Färber

target-sh4: Move TCG initialization to SuperHCPU initfn

Add a tcg_enabled() check to suppress it for qtest.

Signed-off-by: Andreas Färber <>

c1caf1d9 02/16/2013 03:50 pm Andreas Färber

target-mips: Introduce QOM realizefn for MIPSCPU

Introduce a realizefn and set realized = true from cpu_mips_init().

Signed-off-by: Andreas Färber <>

1f136632 02/16/2013 03:50 pm Andreas Färber

target-s390x: Introduce QOM realizefn for S390CPU

Introduce realizefn and set realized = true in cpu_s390x_init().

Defer CPU reset from initfn to realizefn.

Acked-by: Richard Henderson <>
[AF: Invoke parent's realizefn]
Signed-off-by: Andreas Färber <>

55acb588 02/16/2013 03:50 pm Andreas Färber

target-sh4: Introduce QOM realizefn for SuperHCPU

Introduce a realizefn and set realized = true in cpu_sh4_init().

Signed-off-by: Andreas Färber <>

b6e91ebf 02/16/2013 03:50 pm Andreas Färber

target-sparc: Introduce QOM realizefn for SPARCCPU

Introduce realizefn and set realized = true in cpu_sparc_init().

Signed-off-by: Andreas Färber <>

088383e3 02/16/2013 03:50 pm Andreas Färber

target-unicore32: Introduce QOM realizefn for UniCore32CPU

Introduce a realizefn and set realized = true in uc32_cpu_init().

Acked-by: Guan Xuetao <>
[AF: Invoke the parent's realizefn]
Signed-off-by: Andreas Färber <>

5f6c9643 02/16/2013 03:50 pm Andreas Färber

target-xtensa: Introduce QOM realizefn for XtensaCPU

Introduce realizefn and set realized = true in cpu_xtensa_init().

Signed-off-by: Andreas Färber <>