Statistics
| Branch: | Revision:

root @ 8d725fac

# Date Author Comment
8d725fac 03/21/2011 10:46 pm Andreas Färber

softfloat: Prepend QEMU-style header with derivation notice

The SoftFloat license requires "prominent notice that the work
is derivative". Having added features like improved 16-bit support
for arm already, add such a notice to the sources.

softfloat-native.[ch] are not under the SoftFloat license...

735e77ec 03/21/2011 10:43 pm Stefan Hajnoczi

e1000: Fix multi-descriptor packet checksum offload

The PCI/PCI-X Family of Gigabit Ethernet Controllers Software
Developer’s Manual states the following about the POPTS field:

Provides a number of options which control the handling of this
packet. This field is ignored except on the first data descriptor of...
aa315f95 03/21/2011 10:28 pm Aurelien Jarno

Merge branch 'for-anthony' of git://github.com/bonzini/qemu

  • 'for-anthony' of git://github.com/bonzini/qemu:
    remove qemu_get_clock
    add a generic scaling mechanism for timers
    change all other clock references to use nanosecond resolution accessors
    change all rt_clock references to use millisecond resolution accessors...
32465727 03/21/2011 10:28 pm Aurelien Jarno

Merge branch 'for-anthony' of git://repo.or.cz/qemu/kevin

  • 'for-anthony' of git://repo.or.cz/qemu/kevin:
    Add qcow2 documentation
    hw/xen_disk: aio_inflight not released in handling ioreq when nr_segments==0
    Improve error handling in do_snapshot_blkdev()...
cc4e8741 03/21/2011 10:27 pm Aurelien Jarno

rbd: don't link with -lcrypto

rbd support tries to both link with -lrados and -lcrypto. While the
first one is of course necessary, the second is not necessary (only
librados ifself needs to link with libcrypto).

This fixes a licensing issue: qemu as a whole is GPL v2, and thus can't...

34933c8c 03/21/2011 10:04 pm Peter Maydell

hw/arm_sysctl.c: Add the Versatile Express system registers

Add support for the Versatile Express SYS_CFG registers, which provide
a generic means of reading or writing configuration information from
various parts of the board. We only implement shutdown and reset....

0ce1b948 03/21/2011 10:23 am Paolo Bonzini

add more helper functions with explicit milli/nanosecond resolution

The code doesn't make much sense right now, but it will as
soon as timers will be able to scale their resolution arbitrarily.

Signed-off-by: Paolo Bonzini <>

7bd427d8 03/21/2011 10:23 am Paolo Bonzini

change all rt_clock references to use millisecond resolution accessors

This was done with:

sed -i '/get_clock\>.*rt_clock/s/get_clock\>/get_clock_ms/' \
$(git grep -l 'get_clock\>.*rt_clock' )
sed -i '/new_timer\>.*rt_clock/s/new_timer\>/new_timer_ms/' \...
74475455 03/21/2011 10:23 am Paolo Bonzini

change all other clock references to use nanosecond resolution accessors

This was done with:

sed -i 's/qemu_get_clock\>/qemu_get_clock_ns/' \
$(git grep -l 'qemu_get_clock\>' )
sed -i 's/qemu_new_timer\>/qemu_new_timer_ns/' \
$(git grep -l 'qemu_new_timer\>' )...
4a998740 03/21/2011 10:23 am Paolo Bonzini

add a generic scaling mechanism for timers

This enables rt_clock timers to use nanosecond resolution, just by
using the _ns functions; there is really no reason to forbid that.

Migrated timers are all using vm_clock (of course; but I checked that
anyway) so the timers in the savevm files are already in nanosecond...

6d5ad9bf 03/21/2011 10:23 am Paolo Bonzini

remove qemu_get_clock

These patches are already not doing a great service to out-of-tree
modifications to QEMU. However, at least we can warn them by getting
rid of the old confusing functions, or otherwise causing compilation
errors. This patch removes qemu_get_clock; the previous one changed...

e0efb993 03/20/2011 11:39 pm Stefan Weil

Fix conversions from pointer to int and vice versa

Here the int values fds0, sigfd, s, sock and fd are converted
to void pointers which are later converted back to an int value.

These conversions should always use intptr_t instead of unsigned long.

They are needed for environments where sizeof(long) != sizeof(void *)....

d81e54de 03/19/2011 10:43 am Blue Swirl

petalogix_ml605_mmu: remove unused variable

Remove a write-only variable, spotted by GCC 4.6.0:
/src/qemu/hw/petalogix_ml605_mmu.c: In function 'petalogix_ml605_init':
/src/qemu/hw/petalogix_ml605_mmu.c:153:11: error: variable 'serial' set but not used [-Werror=unused-but-set-variable]...

44bc10d5 03/19/2011 10:30 am Blue Swirl

qemu-thread: delete unused functions

qemu_mutex_timedlock() and qemu_cond_timedwait() are no longer used.

Remove them and their helper timespec_add_ms().

Reported-by: François Revol <>
Signed-off-by: Blue Swirl <>

1a290aea 03/19/2011 10:29 am Stefan Weil

w32: Add missing functions qemu_mutex_destroy, qemu_cond_destroy

These functions were missing in commit
9257d46d55f1fe4e8209be9a6870e339ac3266fe.

Both functions are needed for compilations with
configuration --enable-vnc-thread.

Cc: Paolo Bonzini <>...

ca22a3a3 03/19/2011 10:29 am Jan Kiszka

i8254: Fix migration from older versions

qdev conversion broke migration as the previous version used vmstate
instance IDs derived from the iobase. Fix it by registering a legacy
alias.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

d746ce6d 03/16/2011 04:18 pm Michal Simek

microblaze: Compile uart 16550 serial driver

Upcomming little endian platform will use 16550 serial driver.

Signed-off-by: Michal Simek <>
Signed-off-by: Edgar E. Iglesias <>

93f1e401 03/16/2011 04:18 pm Edgar E. Iglesias

xilinx: Add AXIENET & DMA models

Signed-off-by: Edgar E. Iglesias <>

00914b7d 03/16/2011 04:18 pm Michal Simek

microblaze: Add PetaLogix ml605 MMU little-endian ref design

Add the first Microblaze little endian platform.
Platform uses uart16550, axi ethernet, timer, intc.

Signed-off-by: Michal Simek <>
Signed-off-by: Edgar E. Iglesias <>

03feae73 03/16/2011 10:56 am Kevin Wolf

Add qcow2 documentation

This adds a description of the qcow2 file format to the docs/ directory.
Besides documenting what's there, which is never wrong, the document should
provide a good basis for the discussion of format extensions (called "qcow3"
in previous discussions)...

ad620c29 03/15/2011 10:49 pm Blue Swirl

win32: implement missing timersub

Implement and wrap timersub() for Win32.

Acked-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

31d3c9b8 03/15/2011 08:03 pm Stefan Hajnoczi

simpletrace: Move st_init() error reporting

User emulator builds do not have error_report() so it should not be used
by simpletrace.c. In fact, error reporting inside simpletrace.c is
inappropriate and should be done by the caller instead.

This patch moves st_init() error reporting out to its caller,...

40a892b7 03/15/2011 02:21 pm Stefan Weil

block/vdi: Don't ignore immediate read/write failures

This patch is similar to 171e3d6b9997c98a97d0c525867f7cd9b640cadd
which fixed qcow2:

Returning -EIO is far from optimal, but at least it's an error code.

Cc: Kevin Wolf <>
Signed-off-by: Stefan Weil <>...

5614c188 03/15/2011 02:21 pm Stefan Weil

block/qcow: Don't ignore immediate read/write and other failures

This patch is similar to 171e3d6b9997c98a97d0c525867f7cd9b640cadd
which fixed qcow2:

Returning -EIO is far from optimal, but at least it's an error code.

In addition to read/write failures, -EIO is also returned when...

e11480db 03/15/2011 02:21 pm Kevin Wolf

Add error message for loading snapshot without VM state

It already fails, but it didn't tell the user why.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Juan Quintela <>

4e59b545 03/15/2011 02:21 pm Kevin Wolf

tools: Use real async.c instead of stubs

It's wrong to call BHs directly, even in tools. The only operations that
schedule BHs are called in a loop that (indirectly) contains a call to
qemu_bh_poll anyway, so we're not losing the scheduled BHs: Tools either use...

301db7c2 03/15/2011 02:21 pm Ryan Harper

Don't allow multiwrites against a block device without underlying medium

If the block device has been closed, we no longer have a medium to submit
IO against, check for this before submitting io. This prevents a segfault
further in the code where we dereference elements of the block driver....

b93af93d 03/15/2011 02:21 pm Brian Wheeler

Fix ATA SMART and CHECK POWER MODE

This patch fixes two things:

1) CHECK POWER MODE

The error return value wasn't always zero, so it would show up as
offline. Error is now explicitly set to zero.

2) SMART

The smart values that were returned were invalid and tools like skdump...

52f9a172 03/15/2011 02:21 pm Jes Sorensen

Improve error handling in do_snapshot_blkdev()

In case we cannot open the newly created snapshot image, try to fall
back to the original image file and continue running on that, which
should prevent the guest from aborting.

This is a corner case which can happen if the admin by mistake...

209bef3e 03/15/2011 02:21 pm Feiran Zheng

hw/xen_disk: aio_inflight not released in handling ioreq when nr_segments==0

In hw/xen_disk.c, async writing ioreq is leaked when
ioreq->req.nr_segments==0, because `aio_inflight` flag is not released
properly (skipped by misplaced "break").

Signed-off-by: Feiran Zheng <>...

9705fbb5 03/13/2011 04:44 pm Paolo Bonzini

do not use timedwait on qemu_halt_cond

The following conditions can cause cpu_has_work(env) to become true:

- env->queued_work_first: run_on_cpu is already kicking the VCPU

- env->stop = 1: pause_all_vcpus is already kicking the VCPU

- env->stopped = 0: resume_all_vcpus is already kicking the VCPU...

e009894f 03/13/2011 04:44 pm Paolo Bonzini

do not use timedwait on qemu_system_cond

qemu_main_loop_start is the only place where qemu_system_ready is set
to 1.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

be7d6c57 03/13/2011 04:44 pm Paolo Bonzini

do not use timedwait on qemu_pause_cond

all_vcpus_paused can start returning true after penv->stopped changes
from 0 to 1. When this is done, qemu_pause_cond is always signaled.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

18a85728 03/13/2011 04:44 pm Paolo Bonzini

do not use timedwait on qemu_cpu_cond

Whenever env->created becomes true, qemu_cpu_cond is signaled by {kvm,tcg}_cpu_thread_fn.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

8cf3f22b 03/13/2011 04:44 pm Paolo Bonzini

iothread stops the vcpu thread via IPI

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

712ae480 03/13/2011 04:44 pm Paolo Bonzini

merge all signal initialization with qemu_signalfd_init, rename

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

714bd040 03/13/2011 04:44 pm Paolo Bonzini

provide dummy signal init functions for win32

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

b55c22c6 03/13/2011 04:44 pm Paolo Bonzini

protect qemu_cpu_kick_self for Win32

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

cc015e9a 03/13/2011 04:44 pm Paolo Bonzini

add Win32 IPI service

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

b7680cb6 03/13/2011 04:44 pm Jan Kiszka

Refactor thread retrieval and check

We have qemu_cpu_self and qemu_thread_self. The latter is retrieving the
current thread, the former is checking for equality (using CPUState). We
also have qemu_thread_equal which is only used like qemu_cpu_self.

This refactors the interfaces, creating qemu_cpu_is_self and...

9257d46d 03/13/2011 04:44 pm Paolo Bonzini

add win32 qemu-thread implementation

For now, qemu_cond_timedwait and qemu_mutex_timedlock are left as
POSIX-only functions. They can be removed later, once the patches
that remove their uses are in.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

96284e89 03/13/2011 04:44 pm Paolo Bonzini

include qemu-thread.h early

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

89b48b56 03/13/2011 04:44 pm Paolo Bonzini

add assertions on the owner of a QemuMutex

These are already present in the Win32 implementation, add them to
the pthread wrappers as well. Use PTHREAD_MUTEX_ERRORCHECK for mutex
operations. Later we'll add tracking of the owner for cond_signal/broadcast....

38a42e7c 03/13/2011 04:44 pm Paolo Bonzini

remove CONFIG_THREAD

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

eda48c34 03/13/2011 04:44 pm Paolo Bonzini

inline cpu_halted into sole caller

All implementations are now the same, and there is only one caller,
so inline the function there.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

94ad5b00 03/13/2011 04:44 pm Paolo Bonzini

always qemu_cpu_kick after unhalting a cpu

This ensures env->halt_cond is broadcast, and the loop in
qemu_tcg_wait_io_event and qemu_kvm_wait_io_event is exited
naturally rather than through a timeout.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

df646dfd 03/13/2011 04:44 pm Paolo Bonzini

exit round-robin vcpu loop if cpu->stopped is true

Sometimes vcpus are stopped directly without going through ->stop = 1.
Exit the VCPU execution loop in this case as well.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

67bb172f 03/13/2011 04:44 pm Paolo Bonzini

always signal pause_cond after stopping a VCPU

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

9931b2f4 03/13/2011 04:44 pm Paolo Bonzini

unlock iothread during WaitForMultipleObjects

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

cfced5b2 03/13/2011 04:44 pm Paolo Bonzini

implement win32 dynticks timer

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

68c23e55 03/13/2011 04:44 pm Paolo Bonzini

use win32 timer queues

Multimedia timers are only useful for compatibility with Windows NT 4.0
and earlier. Plus, the implementation in Wine is extremely heavyweight.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

913895ab 03/13/2011 03:35 pm Stefan Weil

hw/fmopl: Fix buffer access out-of-bounds errors

Index 75 is one too large for AR_TABLE75, DR_TABLE75.
This error was reported by cppcheck.

hw/fmopl.c:600: error: Buffer access out-of-bounds: OPL.AR_TABLE
hw/fmopl.c:601: error: Buffer access out-of-bounds: OPL.DR_TABLE...

7165448a 03/13/2011 03:24 pm William Dauchy

moving eeprom initialization

The initialization should not be only on reset but also when initializing
the device.
It resolves a bug when hot plugging a pci network device: the mac address
was always null.

Signed-off-by: William Dauchy <>...

e14c8062 03/12/2011 11:52 am Blue Swirl

pc: fix wrong CMOS values for floppy drives

Before commit 63ffb564dca94f8bda01ed6d209784104630a4d2, states for
floppy drives were calculated in fdc.c:fd_revalidate(). There it is
also considered whether a disk is inserted or not. The commit didn't copy
the logic completely to pc.c, which caused a regression....

73ad9e62 03/11/2011 04:24 pm Michal Simek

microblaze: Fix PetaLogix company name

trivial fix.

Signed-off-by: Michal Simek <>
Signed-off-by: Edgar E. Iglesias <>

c4374bb7 03/11/2011 04:24 pm Michal Simek

microblaze: Add PVR for writeback cache, endians

Specify PVR for writeback cache, endians and others.

Signed-off-by: Michal Simek <>
Signed-off-by: Edgar E. Iglesias <>

98fa4a59 03/11/2011 04:03 pm Anthony Liguori

Merge remote branch 'stefanha/tracing' into staging

82fa39b7 03/11/2011 12:12 am Juan Quintela

vmstate: Fix varrays with uint8 indexes

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a624b086 03/11/2011 12:12 am Juan Quintela

vmstate: add UINT32 VARRAYS

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

2a57b6c8 03/11/2011 12:12 am Juan Quintela

vmstate: add VMSTATE_STRUCT_VARRAY_INT32

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

15c6a56e 03/11/2011 12:12 am Juan Quintela

vmstate: add VMSTATE_INT64_ARRAY

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

1283da72 03/11/2011 12:12 am Juan Quintela

vmstate: add VMSTATE_STRUCT_VARRAY_UINT32

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

6059631c 03/11/2011 12:12 am Juan Quintela

vmstate: Add a way to send a partial array

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

639f49b6 03/11/2011 12:12 am Juan Quintela

vmstate: be able to store/save a pci device from a pointer

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

f6317a6e 03/11/2011 12:12 am Juan Quintela

vmstate: move timers to use test instead of version

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

23bfe28f 03/11/2011 12:12 am Stefan Weil

vnc: Fix stack corruption and other bitmap related bugs

Commit bc2429b9174ac2d3c56b7fd35884b0d89ec7fb02 introduced
a severe bug (stack corruption).

bitmap_clear was called with a wrong argument
which caused out-of-bound writes to the local variable width_mask....

9122a8fe 03/11/2011 12:12 am Juan Quintela

vmstate: add VMSTATE_UINT32_EQUAL

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

7d82af38 03/11/2011 12:12 am Vincent Palatin

Fix performance regression in qemu_get_ram_ptr

When the commit f471a17e9d869df3c6573f7ec02c4725676d6f3a converted the
ram_blocks structure to QLIST, it also removed the conditional check before
switching the current block at the beginning of the list.

In the common use case where ram_blocks has a few blocks with only one...

2ea720db 03/11/2011 12:12 am Jes Sorensen

hmp-commands.hx: fix badly merged client_migrate_info command

client_migrate_info was merged badly, placing it between the command
and the documentation for another command. In addition it did not
respect the general rule of hmp-commands.hx, of having command...

d48751ed 03/10/2011 10:16 am Edgar E. Iglesias

xilinx-ethlite: Simplify byteswapping to/from brams

Signed-off-by: Edgar E. Iglesias <>

b651fc6f 03/10/2011 04:38 am Dmitry Eremin-Solenikov

mainstone: PCMCIA support

Extend mst_fpga and mainstone with logic to support PCMCIA
attachment (IRQs, status regs).

Signed-off-by: Dmitry Eremin-Solenikov <>
Signed-off-by: Andrzej Zaborowski <>

95499a1d 03/10/2011 04:36 am Dmitry Eremin-Solenikov

mainstone: use gpio 0 for connection of FPGA instead of hooking into PIC directly

Signed-off-by: Dmitry Eremin-Solenikov <>
Signed-off-by: Andrzej Zaborowski <>

8034ce7d 03/10/2011 04:31 am Andrzej Zaborowski

pxa2xx_timer: Get rid of .level in PXA2xxTimer0.

7c29d6ce 03/10/2011 04:11 am Andrzej Zaborowski

pxa2xx_pic: fixup initialisation

This is based on Dmitry Eremin-Solenikov's patch but simplified.

4ff927cc 03/10/2011 03:46 am Dmitry Eremin-Solenikov

pxa2xx_timer: separate irq for pxa27x handling

First, sysbus_init_irq shan't be called on on-stack variables. Indeed,
it only stores a passed pointer in qdev and the stored irq is later
populated, so we get a nice write-to-stack bug.
Second, irq for pxa27x should probably be handled in a more gentler way,...

ddca9fb2 03/07/2011 05:34 pm Stefan Hajnoczi

trace: Trace posix-aio-compat.c completion and cancellation

This patch adds paio_complete() and paio_cancel() trace events to
complement the paio_submit() event.

Signed-off-by: Stefan Hajnoczi <>

a13aac04 03/07/2011 05:34 pm Stefan Hajnoczi

trace: Trace bdrv_aio_flush()

Add a trace event for bdrv_aio_flush() to complement the existing
bdrv_aio_readv() and bdrv_aio_writev() events.

Signed-off-by: Stefan Hajnoczi <>

0b5538c3 03/07/2011 05:34 pm Stefan Hajnoczi

simpletrace: Thread-safe tracing

Trace events outside the global mutex cannot be used with the simple
trace backend since it is not thread-safe. There is no check to prevent
them being enabled so people sometimes learn this the hard way.

This patch restructures the simple trace backend with a ring buffer...

613a22c9 03/07/2011 02:42 pm Michael Walle

Add lm32 target to configure

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

07bf23a7 03/07/2011 02:42 pm Michael Walle

MAINTAINERS: add LatticeMico32 maintainer

Add me as the lm32-target and machines maintainer.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

f19410ca 03/07/2011 02:42 pm Michael Walle

lm32: system control model

This patch add support for a system control block. It is supposed to
act as helper for the emulated program. E.g. shutting down the VM or
printing test results. This model is intended for testing purposes only and
doesn't fit to any real hardware. Therefore, it is not added to any board...

e5f799a2 03/07/2011 02:42 pm Michael Walle

lm32: support for creating device tree

This patch adds helper functions to create a ROM, which contains a hardware
description of a board. This is used in Theobromas LM32 Linux port.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

d821732a 03/07/2011 02:42 pm Michael Walle

lm32: EVR32 and uclinux BSP

This patch adds support for the following two BSPs:
- LM32 EVR32 BSP (as used by RTEMS)
- uclinux BSP by Theobroma Systems

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

45664345 03/07/2011 02:42 pm Michael Walle

lm32: todo and documentation

This patch adds general target documentation and a todo list.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

d65f0831 03/07/2011 02:42 pm Michael Walle

lm32: opcode testsuite

This patch creates tests/lm32 directory and adds tests for every
LatticeMico32 opcode.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

81ea0e13 03/07/2011 02:42 pm Michael Walle

LatticeMico32 target support

This patch adds support for the LatticeMico32 softcore processor by Lattice
Semiconductor.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

17c0fa3d 03/07/2011 02:42 pm Michael Walle

lm32: translation routines

This patch adds the main translation routine. All opcodes of the
LatticeMico32 processor are supported and translated to TCG ops.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

143e8951 03/07/2011 02:42 pm Michael Walle

lm32: translation code helper

This patch adds translation helper functions.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

c6af5693 03/07/2011 02:42 pm Michael Walle

lm32: machine state loading/saving

This patch adds support for saving and loading the processor state.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

0c45d3d4 03/07/2011 02:42 pm Michael Walle

lm32: gdbstub support

This patch adds lm32 support to the gdbstub.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

4ef66fa7 03/07/2011 02:42 pm Michael Walle

lm32: interrupt controller model

This patch adds the interrupt controller of the lm32. Because the PIC is
accessed through special control registers and opcodes, there are callbacks
from the lm32 translation code to this model.

Signed-off-by: Michael Walle <>...

15d7dc4f 03/07/2011 02:42 pm Michael Walle

lm32: juart model

This patch adds the JTAG UART model. It is accessed through special control
registers and opcodes. Therefore the translation uses callbacks to this
model.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

f89286ae 03/07/2011 02:42 pm Michael Walle

lm32: pic and juart helper functions

This patch adds init functions for the PIC and JTAG UART commonly used
in the board initialization.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

ea7924dc 03/07/2011 02:42 pm Michael Walle

lm32: timer model

This patch adds support for the LatticeMico32 system timer.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

770ae571 03/07/2011 02:42 pm Michael Walle

lm32: uart model

This patch add support for the LatticeMico32 UART.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

ca27c052 03/07/2011 10:46 am Peter Maydell

target-arm: Implement a minimal set of cp14 debug registers

Newer ARM kernels try to probe for whether the CPU has hardware breakpoint
support. For this to work QEMU has to implement a minimal set of the cp14
debug registers. The architecture requires v7 cores to implement debug...

3849902c 03/07/2011 10:26 am Peter Maydell

target-arm: Use TCG temporary leak debugging facilities

Use the new TCG temporary leak debugging facilities to
check that each ARM instruction does not leak temporaries.

Signed-off-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

7d1b0095 03/07/2011 10:26 am Peter Maydell

target-arm: Remove ad-hoc leak checking code

This commit removes the ad-hoc resource leak checking code from
target-arm. This includes replacing all uses of new_tmp() with
tcg_temp_new_i32() and all uses of dead_tmp() with
tcg_temp_free_i32().

Signed-off-by: Peter Maydell <>...

27bfd83c 03/07/2011 10:26 am Peter Maydell

tcg: Add support for debugging leakage of temporaries

Add support (if CONFIG_DEBUG_TCG is defined) for debugging leakage
of temporary variables. Generally any temporaries created by
a target while it is translating an instruction should be freed
by the end of that instruction; otherwise carefully crafted...

6ed221b6 03/07/2011 12:37 am Adam Lackorzynski

target-arm: Integrate secondary CPU reset in arm_boot

Integrate secondary CPU reset into arm_boot, removing it from realview.c.
On non-Linux systems secondary CPUs start with the same entry as the boot
CPU.

Signed-off-by: Adam Lackorzynski <>...