Statistics
| Branch: | Revision:

root @ b5f1aa64

# Date Author Comment
e52458fe 05/31/2011 08:18 pm Richard Henderson

target-alpha: Fix system store_conditional

This code contained typos, as it had never been compiled.

Signed-off-by: Richard Henderson <>

8417845e 05/31/2011 08:18 pm Richard Henderson

target-alpha: Cleanup MMU modes.

Don't bother including executive and supervisor modes.

Signed-off-by: Richard Henderson <>

508b43ea 05/31/2011 08:18 pm Richard Henderson

target-alpha: Merge HW_REI and HW_RET implementations.

Signed-off-by: Richard Henderson <>

129d8aa5 05/31/2011 08:18 pm Richard Henderson

target-alpha: Rationalize internal processor registers.

Delete all the code that tried to emulate the real IPRs of some
unnamed CPU. Replace those with just 3 slots that we can use to
communicate trap information between the helper functions that
signal exceptions and the OS trap handler....

b758aca1 05/31/2011 08:18 pm Richard Henderson

target-alpha: Enable the alpha-softmmu target.

With all of the pre-existing code that would not compile gone,
this is the earliest point at which the target can be enabled.

There is no machine defined yet, so this will crash on startup.
Enable the target anyway, to make sure that further compilation...

07b6c13b 05/31/2011 08:18 pm Richard Henderson

target-alpha: Tidy exception constants.

There's no need to attempt to match EXCP_* values with PALcode entry
point offsets. Instead, compress all the values to make for more
efficient switch statements within QEMU.

We will be doing TLB fill within QEMU proper, not within the PALcode,...

b5f1aa64 05/31/2011 08:18 pm Richard Henderson

target-alpha: Tidy up arithmetic exceptions.

Introduce and use arith_excp, filling in the trap_arg01 IPRs.

Signed-off-by: Richard Henderson <>

8d6df264 05/31/2011 08:18 pm Richard Henderson

target-alpha: Claim ownership.

I've been maintaining this port for a while now.

Signed-off-by: Richard Henderson <>

b9bec751 05/31/2011 08:18 pm Richard Henderson

target-alpha: Disassemble EV6 PALcode instructions.

The QEMU emulation PALcode will use EV6 PALcode insns regardless
of the "real" cpu instruction set being emulated.

Signed-off-by: Richard Henderson <>

bf1b03fe 05/31/2011 08:18 pm Richard Henderson

target-alpha: Single-step properly across branches.

We were failing to generate EXC_DEBUG in the EXIT_PC_UPDATED path.
This caused us not to stop at the instruction after a branch, but
on the instruction afterward.

Signed-off-by: Richard Henderson <>

352e48b0 05/31/2011 08:18 pm Richard Henderson

target-alpha: Remove partial support for palcode emulation.

This code does not work, and will be replaced by a bios image.

Signed-off-by: Richard Henderson <>

2374e73e 05/31/2011 08:18 pm Richard Henderson

target-alpha: Fix translation of PALmode memory insns.

All of the "raw" memory accesses should be "phys" instead. Fix
some confusion about argument ordering of the store routines.
Fix the implementation of store-conditional.

Delete the "alt-mode" helpers. Because we only implement two...

b1d7d2b9 05/31/2011 04:23 pm Anthony Liguori

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

ede77d29 05/31/2011 04:22 pm Anthony Liguori

Merge remote-tracking branch 'amit/for-anthony' into staging

ed7ec840 05/31/2011 04:20 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/scsi.2' into staging

Conflicts:
hw/usb-msd.c

f590f4c4 05/31/2011 04:17 pm Anthony Liguori

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

b9055c3c 05/29/2011 01:58 pm Stefan Weil

pflash_cfi02: Fix a typo in debug code (TARGET_FMT_pld -> TARGET_FMT_plx)

Thanks to Tobias Hoffmann <> for this patch.

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

06ea77bc 05/29/2011 01:58 pm Stefan Weil

Fix spelling in comment (additon -> addition)

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

2eb9f241 05/28/2011 05:20 pm Marcus Comstedt

bitbang_i2c: Fix spurious slave read after NACK

After NACKing a read operation, a raising SCL should not trigger a new
read from the slave. Introduce a new state which just waits for a stop
or start condition after NACK.

Signed-off-by: Marcus Comstedt <>...

42a623c7 05/28/2011 09:26 am Blue Swirl

Move user emulator stuff from cpu-exec.c to user-exec.c

Simplify cpu-exec.c by refactoring.

Signed-off-by: Blue Swirl <>

9eff14f3 05/28/2011 09:25 am Blue Swirl

cpu-exec: prepare for user and softmmu split

There is little in common with user and softmmu versions of cpu_resume_signal(),
split them.

Fix coding style for the user emulator part.

Signed-off-by: Blue Swirl <>

2a3d57ce 05/27/2011 01:20 pm Markus Armbruster

virtio-serial: Clean up virtconsole detection

virtio-serial-bus needs to treat "virtconsole" devices specially. It
uses VirtIOSerialPort member is_console to recognize them. It gets
its value via property initialization. Cute hack, except it lets
users mess with it: "-device virtconsole,is_console=0" isn't plugged...

31d0f80f 05/27/2011 01:20 pm Markus Armbruster

virtio-serial: Drop useless property is_console

All you could ever achieve with it is break stuff, so removing it
should be safe.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Amit Shah <>

a15bb0d6 05/27/2011 01:20 pm Markus Armbruster

virtio-serial: Drop redundant VirtIOSerialPort member info

Signed-off-by: Markus Armbruster <>
Signed-off-by: Amit Shah <>

7edfe652 05/27/2011 01:20 pm Markus Armbruster

virtio-console: Simplify init callbacks

Signed-off-by: Markus Armbruster <>
Signed-off-by: Amit Shah <>

199646d8 05/27/2011 01:20 pm Alon Levy

virtio-serial-bus: use bh for unthrottling

Instead of calling flush_queued_data when unthrottling, schedule
a bh. That way we can return immediately to the caller, and the
flush uses the same call path as a have_data for callbackee.

No migration change is required because bh are called from vm_stop....

5e52e5f9 05/27/2011 01:20 pm Markus Armbruster

virtio-serial: Plug memory leak on qdev exit()

virtio_serial_init() allocates the VirtIOSerialBus dynamically, but
virtio_serial_exit() doesn't free it.

Fix by getting rid of the allocation.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Amit Shah <>

42741212 05/26/2011 01:14 pm Paolo Bonzini

scsi: make write_data return void

The return value is unused anyway.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

2e7cc4d6 05/26/2011 01:14 pm Paolo Bonzini

scsi-generic: Handle queue full

The sg driver currently has a hardcoded limit of commands it
can handle simultaneously. When this limit is reached the
driver will return -EDOM. So we need to capture this to
enable proper return values here.

Signed-off-by: Hannes Reinecke <>...

3944966d 05/26/2011 01:14 pm Paolo Bonzini

esp: rename sense to status

This mirrors the LSI patch that was recently committed.

Signed-off-by: Paolo Bonzini <>
Cc: Christoph Hellwig <>

c6df7102 05/26/2011 01:14 pm Paolo Bonzini

scsi: split command_complete callback in two

Signed-off-by: Paolo Bonzini <>
Cc: Christoph Hellwig <>

aba1f023 05/26/2011 01:14 pm Paolo Bonzini

scsi: rename arguments to the new callbacks

Signed-off-by: Paolo Bonzini <>
Cc: Christoph Hellwig <>

1455084e 05/26/2011 01:14 pm Paolo Bonzini

scsi: ignore LUN field in the CDB

The LUN field in the CDB is a historical relic. Ignore it as reserved,
which is what modern SCSI specifications actually say.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

a1f0cce2 05/26/2011 01:14 pm Hannes Reinecke

scsi: Update sense code handling

The SCSI spec has a quite detailed list of sense codes available.
It even mandates the use of specific ones for some failure cases.
The current implementation just has one type of generic error
which is actually a violation of the spec in certain cases....

fc4f0754 05/26/2011 01:14 pm Paolo Bonzini

scsi: do not call send_command directly

Move the common part of scsi-disk.c and scsi-generic.c to the SCSI layer.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

43a2b339 05/26/2011 01:14 pm Paolo Bonzini

scsi: introduce scsi_req_new

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

ad3376cc 05/26/2011 01:14 pm Paolo Bonzini

scsi: introduce scsi_req_continue

Signed-off-by: Paolo Bonzini <>
Cc: Christoph Hellwig <>

0c34459b 05/26/2011 01:14 pm Paolo Bonzini

scsi: introduce scsi_req_get_buf

... and remove some SCSIDevice variables or fields that now become unused.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

74382217 05/26/2011 01:14 pm Hannes Reinecke

scsi: Implement 'get_sense' callback

The get_sense callback copies existing sense information into
the provided buffer. This is required if sense information
should be transferred together with the command response.

Signed-off-by: Hannes Reinecke <>...

efb9ee02 05/26/2011 01:14 pm Hannes Reinecke

scsi-disk: add data direction checking

scsi_req_parse() already provides for a data direction setting,
so we should be using it to check for correct direction.
And we should return the sense code 'INVALID FIELD IN CDB'
in these cases.

Signed-off-by: Hannes Reinecke <>...

ad2d30f7 05/26/2011 01:14 pm Paolo Bonzini

scsi: reference-count requests

With the next patch, a device may hold SCSIRequest for an indefinite
time. Split a rather big patch, and protect against access errors,
by reference counting them.

There is some ugliness in scsi_send_command implementation due to...

11257187 05/26/2011 01:14 pm Paolo Bonzini

lsi: extract lsi_find_by_tag

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

5c6c0e51 05/26/2011 01:14 pm Hannes Reinecke

scsi: Use 'SCSIRequest' directly

Currently the SCSIRequest structure is abstracted away and cannot accessed
directly from the driver. This requires the handler to do a lookup on
an abstract 'tag' which identifies the SCSIRequest structure.

With this patch the SCSIRequest structure is exposed to the driver. This...

c557e889 05/26/2011 01:14 pm Paolo Bonzini

scsi: commonize purging requests

The code for canceling requests upon reset is already the same. Clean
it up and move it to scsi-bus.c.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

19d110ab 05/26/2011 01:14 pm Paolo Bonzini

scsi: introduce scsi_req_abort

This covers the case of canceling a request's I/O and still
completing it.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

94d3f98a 05/26/2011 01:14 pm Paolo Bonzini

scsi: introduce scsi_req_cancel

This is for when the request must be dropped in the void,
but still memory should be freed. To this end, the devices
register a second callback in SCSIBusOps.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

2b8b3bb9 05/26/2011 01:14 pm Paolo Bonzini

scsi: use scsi_req_complete

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

5138efec 05/26/2011 01:14 pm Paolo Bonzini

scsi: add tracing of scsi requests

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

40f16dd1 05/26/2011 01:14 pm Paolo Bonzini

scsi-generic: Remove bogus double complete

scsi-generic scsi_read_complete() should not both call the client
complete callback with SCSI_REASON_DATA and call
scsi_command_complete(). The former will cause the client to queue a
new read or write request, while the later will free the request data...

ab9adc88 05/26/2011 01:14 pm Paolo Bonzini

scsi: introduce scsi_req_data

This abstracts calling the command_complete callback, reducing churn
in the following patches.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>

cfdc1bb0 05/26/2011 01:14 pm Paolo Bonzini

scsi: introduce SCSIBusOps

There are more operations than a SCSI bus can handle, besides completing
commands. One example, which this series will introduce, is cleaning up
after a request is cancelled.

More long term, a "SCSI bus" can represent the LUNs attached to a...

d33e0ce2 05/26/2011 01:14 pm Paolo Bonzini

scsi-generic: do not use a stale aiocb

If a request is canceled after it has been completed, scsi_cancel_io
would pass a stale aiocb to bdrv_aio_cancel. Avoid this.

Signed-off-by: Paolo Bonzini <>
Cc: Christoph Hellwig <>

94527ead 05/26/2011 12:57 pm Gerd Hoffmann

usb: add ehci adapter

This patch finally merges the EHCI host adapter aka USB 2.0 support.

Based on the ehci bits collected @ git://git.kiszka.org/qemu.git ehci

EHCI has a long out-of-tree history. Project was started by Mark
Burkley, with contributions by Niels de Vos. David S. Ahern continued...

53aa8c0e 05/26/2011 12:55 pm Gerd Hoffmann

usb: add usb_handle_packet

Add a usb_handle_packet function, put it into use everywhere.
Right now it just calls dev->info->handle_packet(), that will
change in future patches though.

Signed-off-by: Gerd Hoffmann <>

4ff658fb 05/26/2011 12:55 pm Gerd Hoffmann

usb: keep track of packet owner.

Keep track of the device which owns the usb packet for async processing.

Signed-off-by: Gerd Hoffmann <>

eb5e680a 05/26/2011 12:55 pm Gerd Hoffmann

usb: move cancel callback to USBDeviceInfo

Remove the cancel callback from the USBPacket struct, move it over
to USBDeviceInfo. Zap usb_defer_packet() which is obsolete now.

Signed-off-by: Gerd Hoffmann <>

c6d3ad0f 05/26/2011 12:55 pm Brad Hards

usb: Add Interface Association Descriptor descriptor type

Signed-off-by: Brad Hards <>
Signed-off-by: Gerd Hoffmann <>

add75088 05/26/2011 12:55 pm Brad Hards

usb: update config descriptors to identify number of interfaces

Previously we relied on the .bNumInterfaces, but that won't always be
accurate after the introduction of grouped interfaces.

Signed-off-by: Brad Hards <>
Signed-off-by: Gerd Hoffmann <>

fef13fa8 05/26/2011 12:55 pm Brad Hards

usb: remove fallback to bNumInterfaces if no .nif

All callers have been updated.

Signed-off-by: Brad Hards <>
Signed-off-by: Gerd Hoffmann <>

6e625fc7 05/26/2011 12:55 pm Brad Hards

usb: add support for "grouped" interfaces and the Interface Association Descriptor

This is used for some devices that have multiple interfaces that form a logic
device. An example is Video Class, which has a Control interface and a
Streaming interface. There can be additional interfaces on the same (physical)...

8656954a 05/26/2011 12:55 pm Jan Vesely

Bug #757654: UHCI fails to signal stall response patch

UHCI host controller status register indicates error and
an interrupt is triggered on BABBLE and STALL errors.

Signed-off-by: Jan Vesely <>
Signed-off-by: Gerd Hoffmann <>

007fd62f 05/26/2011 12:55 pm Hans de Goede

usb: Pass the packet to the device's handle_control callback

This allows using the generic usb_generic_handle_packet function from
device code which does ASYNC control requests (such as the linux host
pass through code).

Signed-off-by: Hans de Goede <>

50b7963e 05/26/2011 12:55 pm Hans de Goede

usb-linux: use usb_generic_handle_packet()

Make the linux usb host passthrough code use the usb_generic_handle_packet()
function, rather then the curent DYI code. This removes 200 lines of almost
identical code.

Signed-off-by: Hans de Goede <>

5557d820 05/26/2011 12:55 pm Gerd Hoffmann

usb-linux: fix device path aka physical port handling

The device path isn't just a number. It specifies the physical port
the device is connected to and in case the device is connected via
usb hub you'll have two numbers there, like this: "5.1". The first...

9056a297 05/26/2011 12:55 pm Gerd Hoffmann

usb-linux: add hostport property

This patch adds a hostport property which allows to specify the host usb
devices to pass through by bus number and physical port. This means you
can basically hand over one (or more) of the usb plugs on your host to
the guest and whatever device is plugged in there will show up in the...

7a8fc83f 05/26/2011 12:55 pm Gerd Hoffmann

usb-linux: track aurbs in list

This patch adds code to track all async urbs in a linked list,
so we can find them without having to pass around a opaque
pointer to them. Prerequisite for the cleanups.

Signed-off-by: Gerd Hoffmann <>

227ebeb5 05/26/2011 12:55 pm Gerd Hoffmann

usb-linux: walk async urb list in cancel

Lookup async urbs which are to be canceled using the linked list
instead of the direct opaque pointer. There are two reasons we
are doing that: First, to avoid the opaque poiner to the callback,
which is needed for upcoming cleanups. Second, because we might...

71138531 05/26/2011 12:55 pm Gerd Hoffmann

usb-linux: split large xfers

Add support for splitting large transfers into multiple smaller ones.
This is needed for the upcoming EHCI emulation which allows guests
to submit requests up to 20k in size. The linux kernel allows 16k
max size though.

Based on a patch from David Ahern, see...

6dfcdccb 05/26/2011 12:55 pm Gerd Hoffmann

usb-linux: fix max_packet_size for highspeed.

Calculate the max packet size correctly. Only bits 0..11 specify the size,
bits 11+12 specify the number of (highspeed) microframes the endpoint wants
to use.

Signed-off-by: Gerd Hoffmann <>

ebd669a1 05/26/2011 12:55 pm Gerd Hoffmann

usb-storage: don't call usb_packet_complete twice

usb_msd_copy_data() may cause a recursive call to
usb_msd_command_complete() which in turn may complete
the packet, setting s->packet to NULL in case it does.
Recheck s->packet before calling usb_packet_complete()...

aa29141d 05/25/2011 03:04 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/CVE-2011-1751' into staging

6093d3d4 05/24/2011 12:36 am Peter Maydell

configure: Document --disable-slirp option in --help

The --disable-slirp option was undocumented; add it to configure's
--help output.

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

89e40268 05/23/2011 11:53 pm Peter Maydell

target-arm/exec.h: Remove unused #define of M0

Remove a preprocessor #define which is never used.

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

36802b6b 05/23/2011 11:39 pm Peter Maydell

target-arm: Signal Underflow when denormal flushed to zero on output

On ARM the architecture mandates that when an output denormal is flushed to
zero we must set the FPSCR UFC (underflow) bit, so map softfloat's
float_flag_output_denormal accordingly.

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

5500b06c 05/23/2011 11:39 pm Peter Maydell

target-arm: Use correct float status for Neon int-float conversions

The Neon versions of int-float conversions must use the "standard FPSCR"
rather than the default FPSCR. Implement this by having the helper
functions take a pointer to the appropriate float_status value rather...

cab565c4 05/23/2011 11:39 pm Peter Maydell

target-arm: Signal InvalidOp for Neon GE and GT compares of QNaN

If the input to a Neon float comparison is a quiet NaN, the ARM ARM
specifies that we should raise InvalidOp if the comparison is GE or GT
but not for EQ. (Signaling NaNs raise InvalidOp regardless). This means...

43fe9bdb 05/23/2011 11:39 pm Peter Maydell

target-arm: Signal InputDenormal for VRECPE, VRSQRTE, VRECPS, VRSQRTS

The helpers for VRECPE.F32, VSQRTE.F32, VRECPS and VRSQRTS handle denormals
as special cases, so we must set the InputDenormal exception flag ourselves.

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

e6afc87f 05/23/2011 11:39 pm Peter Maydell

softfloat: Add new flag for when denormal result is flushed to zero

Add a new float_flag_output_denormal which is set when the result
of a floating point operation would be denormal but is flushed to
zero because we are in flush_to_zero mode. This is necessary because...

1146a817 05/23/2011 11:39 pm Peter Maydell

target-arm: Don't set FP exceptions in recip, recip_sqrt estimate fns

The functions which do the core estimation algorithms for the VRSQRTE
and VRECPE instructions should not set floating point exception flags,
so use a local fp status for doing these calculations....

8c11ad25 05/23/2011 11:38 pm Aurelien Jarno

tcg: don't keep dead outputs in registers

If an op with dead outputs is not removed, because it has side effects
or has multiple output and only one dead, mark the registers as dead
instead of saving them. This avoid a few register spills on TCG targets
with low register count, especially with div2 and mul2 ops, or when a...

6b64b624 05/23/2011 11:38 pm Aurelien Jarno

tcg: mark dead output argument in op_dead_args

If an op is not removed and has dead output arguments, mark it
in op_dead_args similarly to what is done for input arguments.

Signed-off-by: Aurelien Jarno <>

866cb6cb 05/23/2011 11:38 pm Aurelien Jarno

tcg: replace op_dead_iargs by op_dead_args

Allow all args to be dead by replacing the input specific op_dead_iargs
variable by op_dead_args. Note this is a purely mechanical change.

Signed-off-by: Aurelien Jarno <>

6eba5c82 05/23/2011 11:36 pm Aurelien Jarno

Merge branch 'trivial-patches' of git://repo.or.cz/qemu/stefanha

  • 'trivial-patches' of git://repo.or.cz/qemu/stefanha:
    Fix typos in comments (chek -> check)
    hw/sd.c: Don't complain about SDIO commands CMD52/CMD53
    hw/realview.c: Remove duplicate #include line...
5db070eb 05/23/2011 11:35 pm Aurelien Jarno

Merge branch 'ppc-next' of git://repo.or.cz/qemu/agraf

  • 'ppc-next' of git://repo.or.cz/qemu/agraf:
    Fix a bug in mtsr/mtsrin emulation on ppc64
    pSeries: Clean up write-only variables
    w32: Fix compilation and replace non-portable usage of ulong
05c8a1e4 05/23/2011 11:33 pm Aurelien Jarno

Merge branch 's390-next' of git://repo.or.cz/qemu/agraf

  • 's390-next' of git://repo.or.cz/qemu/agraf:
    s390x: complain when allocating ram fails
    s390x: fix memory detection for guests > 64GB
    s390x: change mapping base to allow guests > 2GB
    s390x: Fix debugging for unknown sigp order codes...
09de0f46 05/23/2011 12:31 am TeLeMan

piix_pci: fix piix3_set_irq_pic()

If pic_irq is greater than 7, the irq level is always 0 on 32bits.

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

1cd08725 05/23/2011 12:31 am Peter Maydell

hw/realview.c: Remove duplicate #include line

Remove a duplicate #include of sysbus.h.

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

39e594db 05/23/2011 12:31 am Peter Maydell

hw/sd.c: Don't complain about SDIO commands CMD52/CMD53

The SDIO specification introduces new commands 52 and 53.
Handle as illegal command but do not complain on stderr,
as SDIO-aware OSes (including Linux) may legitimately use
these in their probing for presence of an SDIO card....

a57d23e4 05/23/2011 12:31 am Stefan Weil

Fix typos in comments (chek -> check)

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

dcfd14b3 05/22/2011 01:47 pm Blue Swirl

Delete unused tb_invalidate_page_range

tb_invalidate_page_range() was intended to be used to invalidate an
area of a TB which the guest explicitly flushes from i-cache. However,
QEMU detects writes to code areas where TBs have been generated, so
his has never been useful....

6d42fb31 05/20/2011 06:56 pm Stefan Weil

w32: Fix compilation and replace non-portable usage of ulong

ulong is undefined for w32 (and maybe other) compilations.
Replace it by uintptr_t (which also fixes compilation for w64
and is a better choice for pointer to integer conversions).

Cc: Aurelien Jarno <>...

1235a9cf 05/20/2011 06:56 pm David Gibson

pSeries: Clean up write-only variables

A few pieces of the pSeries emulation code have variables which are set
but never used, which causes warnings on gcc 4.6. This patch removes
these instances.

Signed-off-by: David Gibson <>...

decb4714 05/20/2011 06:56 pm David Gibson

Fix a bug in mtsr/mtsrin emulation on ppc64

Early ppc64 CPUs include a hack to partially simulate the ppc32 segment
registers, by translating writes to them into writes to the SLB. This is
not used by any current Linux kernel, but it is used by the openbios used...

a74cdab4 05/20/2011 06:35 pm Christian Borntraeger

s390x: Fix debugging for unknown sigp order codes

On unknown sigp order codes we print a debug message. This patch
fixes the output, since we want to see the order_code and not
the register numbers.
Patch applies on agraf tree.

Signed-off-by: Christian Borntraeger <>...

ff83678a 05/20/2011 06:35 pm Christian Borntraeger

s390x: change mapping base to allow guests > 2GB

the current s390x qemu memory layout is

0x1000000: guest start
0x80000000: qemu binary

which limits the amount of available memory to <2GB.
This patch moves the guest pages to 32GB to not collide with the binary...

22486aa0 05/20/2011 06:35 pm Christian Borntraeger

s390x: fix memory detection for guests > 64GB

the s390 memory detection has a 16bit field that specifies the amount of
increments. This patch adopts the memory size to always fit into that
scheme. This also fixes virtio detection for these guests, since the...

fb8b2735 05/20/2011 06:35 pm Alexander Graf

s390x: complain when allocating ram fails

While trying out the > 64GB guest RAM patch, I hit some virtual address
limitations of my host system, which resulted in mmap failing. Unfortunately,
qemu didn't tell me about this failure, but just used the NULL pointer...

59467bac 05/20/2011 06:35 pm Alexander Graf

s390x: Adjust GDB stub

We have successfully lazilized cc computation, so we need to manually
trigger its calculation when gdb wants to fetch it. We also changed the
variable name, so writing it writes into a different field now.

Signed-off-by: Alexander Graf <>

fe9b35b7 05/20/2011 06:35 pm Alexander Graf

s390x: remove compatibility cc field

Remove the now unused cc field that was only required to not break
bisectability.

Signed-off-by: Alexander Graf <>

0f3301d4 05/20/2011 06:35 pm Alexander Graf

s390x: build s390x by default

This patch enables building of s390x-softmmu and s390x-linux-user
targets by default.

Signed-off-by: Alexander Graf <>