Statistics
| Branch: | Revision:

root @ b1a15e7e

# Date Author Comment
b1a15e7e 12/03/2009 05:41 pm Luiz Capitulino

QMP: Introduce basic asynchronous events

Debug, shutdown, reset, powerdown and stop are all basic events,
as they are very simple they can be added in the same commit.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

25b422eb 12/03/2009 05:41 pm Luiz Capitulino

QMP: Output support

In the new Monitor output is always performed by only two
functions: do_info() and monitor_call_handler().

To support QMP output, we modify those functions to check if we
are in control mode. If so, we call monitor_protocol_emitter()...

956f1a0d 12/03/2009 05:41 pm Luiz Capitulino

QMP: do_info() checks

This commit adds specific QMP checks to do_info(), so that
it behaves as expected in QMP mode.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

5fa737a4 12/03/2009 05:41 pm Luiz Capitulino

QMP: Input support

The JSON stream parser is used to do QMP input. When there
are enough characters to be parsed it calls Monitor's
handle_qmp_command() function to handle the input.

This function's job is to check if the input is correct and
call the appropriate handler. In other words, it does for QMP...

5e23f480 12/03/2009 05:41 pm Luiz Capitulino

QMP: Allow 'query-' commands

The 'info' command makes sense for the user protocol, but for QMP
it doesn't, as its return data is not well defined. That is, it
can return anything.

To fix this Avi proposes having 'query-' commands when in protocol
mode. For example, 'info balloon' would become 'query-balloon'....

0d1ea871 12/03/2009 05:41 pm Luiz Capitulino

QMP: Asynchronous events infrastructure

Asynchronous events are generated with a call to
monitor_protocol_event().

This function builds the right data-type and emit the event
right away. The emitted data is always a JSON object and its
format is as follows:...

7fd669a1 12/03/2009 05:41 pm Luiz Capitulino

monitor: Introduce monitor_find_command()

This commit moves the loop which searches for the command
entry corresponding to a command name to its own function.

It will be used by QMP code as well.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

f3c157c4 12/03/2009 05:41 pm Luiz Capitulino

monitor: Rename monitor_handle_command()

As this series will add a new kind of Monitor command, it's better
to rename monitor_handle_command() to what it really is:
handle_user_command().

This will avoid confusion.

Signed-off-by: Luiz Capitulino <>...

e3bba9d0 12/03/2009 05:41 pm Luiz Capitulino

monitor: Introduce 'info commands'

List QMP available commands. Only valid in control mode, where
has to be used as 'query-commands.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

4b9d4683 12/03/2009 05:41 pm Luiz Capitulino

QError: Add errors needed by QMP

Only QERR_QMP_BAD_INPUT_OBJECT is QMP specific, the others can
be used in different contexts by other subsystems.

Please, note that QERR_JSON_PARSING signals any parsing error
from the json parser. We will need it until the parser gets...

9b57c02e 12/03/2009 05:41 pm Luiz Capitulino

QMP: Initial support

This commit adds initial QMP support in QEMU. It's important
to notice that most QMP code will be part of the Monitor.

Input will be read by monitor_control_read(). Currently it
does nothing but next patches will add proper input support....

055f6122 12/03/2009 05:41 pm Luiz Capitulino

QError: Add QERR_DEVICE_NOT_ACTIVE

New class for device not active errors.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

82a60711 12/03/2009 05:41 pm Luiz Capitulino

QError: Add QERR_KVM_MISSING_CAP

New class for KVM unavailable features errors.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

5d6c37fb 12/03/2009 05:41 pm Luiz Capitulino

monitor: do_info_balloon(): Use QError

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

418173c7 12/03/2009 05:41 pm Luiz Capitulino

monitor: Introduce MONITOR_USE_CONTROL flag

This flag will be set when Monitor enters "control mode", in
which the output will be defined by the QEMU Monitor Protocol.

This also introduces a macro to check if the flag is set.

Signed-off-by: Luiz Capitulino <>...

adcb181a 12/03/2009 05:41 pm Luiz Capitulino

monitor: Command-line flag to enable control mode

This commit adds a flag called 'control' to the '-monitor'
command-line option. This flag enables control mode.

The syntax is:

qemu [...] -monitor control,<device>

Where <device> is a chardev (excluding 'vc', for obvious reasons)....

99e2fc16 12/03/2009 05:41 pm Luiz Capitulino

monitor: Introduce monitor_call_handler()

This commit moves the code which calls Monitor handlers to
its own function, as it will be used by QMP code as well.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

9f9daf9a 12/03/2009 05:41 pm Luiz Capitulino

Introduce QError

QError is a high-level data type which represents an exception
in QEMU, it stores the following error information:

- class Error class name (eg. "ServiceUnavailable")
- description A detailed error description, which can contain...

8204a918 12/03/2009 05:41 pm Luiz Capitulino

monitor: QError support

This commit adds QError support in the Monitor.

A QError member is added to the Monitor struct. This new member
stores error information and is also used to check if an error
has occurred when the called handler returns.

Additionally, a new macro called qemu_error_new() is introduced....

357b6156 12/03/2009 05:41 pm Luiz Capitulino

QError: Add QERR_DEVICE_NOT_FOUND

New class for device not found errors.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

3ced9f7a 12/03/2009 05:41 pm Luiz Capitulino

qdev: Use QError for 'device not found' error

Please, note that we will lose the "Try -device '?' for a list"
hint as it's qdev specific.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

6fe9565c 12/03/2009 05:41 pm Luiz Capitulino

QString: Introduce qstring_append_chr()

It appends a C char to a QString.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

764c1cae 12/03/2009 05:41 pm Luiz Capitulino

QString: Introduce qstring_append_int()

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

4b5c5766 12/03/2009 05:41 pm Luiz Capitulino

QString: Introduce qstring_from_substr()

Note that we can now write qstring_from_str() as a wrapper.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

f08932c8 12/03/2009 05:41 pm Luiz Capitulino

utests: Add qstring_append_chr() unit-test

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

64084a03 12/03/2009 05:41 pm Luiz Capitulino

utests: Add qstring_from_substr() unit-test

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

8ff5a7d3 12/03/2009 05:41 pm Luiz Capitulino

QJSON: Introduce qobject_from_jsonv()

It accepts a va_list and will be used by QError. Also simplifies
the code a little, as the other qobject_from_() functions can
use it.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

b3a21988 12/02/2009 06:26 pm Juha Riihimäki

fix I2C slave addressing

With the recent device handling changes the I2C slave addressing code
was broken. With current code, if a slave with the correct address is

not found on the bus the last scanned slave on the bus will be
addressed. This is wrong. Please find attached a patch to fix it....

51954d56 12/02/2009 04:57 pm Gerd Hoffmann

Fix qdev property type definition for isa serial/parallel devices

Use the correct qdev property type for these devices.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

e3c916e6 12/02/2009 04:57 pm Jean-Christophe DUBOIS

Fix qemu_free use in scsi-generic.c

scsi-generic.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <>
Signed-off-by: Anthony Liguori <>

834fac78 12/02/2009 04:57 pm Jean-Christophe DUBOIS

Fix free use in xen_backend.c

xen_backend.c is using qemu_free() instead of free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <>
Signed-off-by: Anthony Liguori <>

2bc6f59b 12/02/2009 04:57 pm Jean-Christophe DUBOIS

Fix qemu_malloc/qemu_free use in rtl8139.c

rtl8139.c is using malloc()/free() instead of qemu_malloc()/qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <>
Signed-off-by: Anthony Liguori <>

be17dc90 12/02/2009 04:57 pm Michael S. Tsirkin

configure: use correct cflags in compiler checks

linux-user build on fedora 11 breaks because fallocate
is broken on that system if -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
are specified, which is what QEMU uses.

We do have a configure check to catch this and disable fallocate,...

d6318738 12/02/2009 04:57 pm Michael S. Tsirkin

pci: move apb specific stuff to apb_pci.c

pci code had a TODO to move apb specific
pci bridge initialization to apb_pci.
Implement this and remove the TODO.

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Anthony Liguori <>

b2538b4b 12/02/2009 04:57 pm Jean-Christophe DUBOIS

Fix qemu_free use in acpi.c

acpi.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <>
Signed-off-by: Anthony Liguori <>

49cd8046 12/02/2009 04:57 pm Jean-Christophe DUBOIS

Fix qemu_free use in baum.c

baum.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <>
Signed-off-by: Anthony Liguori <>

5f6eab3f 12/02/2009 04:57 pm Jean-Christophe DUBOIS

Fix qemu_free use in nand.c

nand.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <>
Signed-off-by: Anthony Liguori <>

2db69b23 12/02/2009 04:57 pm Jean-Christophe DUBOIS

Fix qemu_free use in bt-l2cap.c

bt-l2cap.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <>
Signed-off-by: Anthony Liguori <>

6f0953b1 12/02/2009 04:57 pm Jean-Christophe DUBOIS

Fix qemu_free use in nseries.c

nseries.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <>
Signed-off-by: Anthony Liguori <>

1062977b 12/02/2009 04:47 pm Stefan Weil

vga-pci: Fix access to linear framebuffer

Anthony Liguori's patch fixes the problems with
vga display in graphical mode and SeaBIOS.

I only adapted some values for vga-pci.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

a73e8e43 12/02/2009 04:47 pm Stefan Weil

Makefile: Remove unneeded prerequisites

Thanks to f527c57935e22b56952d1ed1af36070b682ecf70
(fix parallel build), these prerequisites
are redundant now and can be removed.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

36536984 12/01/2009 07:54 pm Anthony Liguori

Merge commit 'mst/for_anthony' into mst

98304c84 12/01/2009 06:00 pm Michael S. Tsirkin

msix: clear pending bit of an unused vector

PCI spec states:
if a masked vector has its Pending bit set, and the associated
underlying interrupt events are somehow satisfied (usually by software
though the exact manner is function-specific), the function must clear...

1f944c66 12/01/2009 06:00 pm Michael S. Tsirkin

msix: fix reset value for enable bit

On reset, we currently clear all bits in msix control register except
enable bit. This is wrong: the spec says we should clear writeable
bits: function mask and enable bit.
Correct this.

Signed-off-by: Michael S. Tsirkin <>

ae1be0bb 12/01/2009 05:59 pm Michael S. Tsirkin

msix: fix mask bit state after reset

PCI spec states that mask bit must be 1 after reset.
Make it so.

Signed-off-by: Michael S. Tsirkin <>

1b8e9b27 12/01/2009 05:58 pm Michael S. Tsirkin

virtio: do not reset msix state on soft reset

msix state is managed by OS, not the
driver, so it's wrong to touch it
on io from driver.
Mark all vectors unused instead.

Signed-off-by: Michael S. Tsirkin <>

b5f28bca 12/01/2009 05:58 pm Michael S. Tsirkin

msix: add helper to unuse all msix entries

will be used by virtio on soft reset

Signed-off-by: Michael S. Tsirkin <>

88a95564 12/01/2009 05:52 pm Michael S. Tsirkin

pci: convert goto into scope in bridge_filter

goto into scope is evil. rearrange pci_bridge_filter
so that we always go to end of function on error.

Signed-off-by: Michael S. Tsirkin <>
Acked-by: Isaku Yamahata <>

d46636b8 12/01/2009 05:52 pm Isaku Yamahata

pci: pci bridge related clean up.

- fix bridge prefetchable memory accesser to check 64bit or not.
- use pcibus_t consistently instead mixing pcibus_t and uint64_t.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

10c9c329 12/01/2009 05:52 pm Isaku Yamahata

pci: fix pci_config_get_io_base().

fix typo in pci_config_get_io_base().

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

b47b0706 12/01/2009 05:52 pm Isaku Yamahata

pci: remove magic number, 256 in pci.c

This patch replaces magic number, 256, with ARRAY_SIZE().

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

876a350d 12/01/2009 05:52 pm Michael S. Tsirkin

pci: split up up pci_update mappings

Split bar address math into a separate function.
In particular, this gets rid of an ugly forward goto
into scope that we have there.

Signed-off-by: Michael S. Tsirkin <>
Acked-by: Isaku Yamahata <>

ec503442 12/01/2009 05:52 pm Isaku Yamahata

pci: clean up of pci_update_mappings()

This patch converts r->size == 0 to !r_size.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

2c56b44b 12/01/2009 05:52 pm Isaku Yamahata

pci: remove unused constants

This patch removes unused constants committed by
fb23162885f7fd8cf7334bed22c25ac32c7d8b9d.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

fb47a2e9 12/01/2009 05:52 pm Isaku Yamahata

pci: move typedef, PCIHostState, PCIExpressHost to qemu-common.h.

This patch moves two typedefs, PCIHostState and PCIExpressHost to
qemu-common.h for consistency as PCIBus and PCIDevice are typedefed
in qemu-common.h.

Signed-off-by: Isaku Yamahata <>...

3c217c14 12/01/2009 05:52 pm Isaku Yamahata

pci: remove some unnecessary comment in pci.h

This patch removes some comment which should go into commit log
in pci.h.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

3e21ffc9 12/01/2009 05:52 pm Isaku Yamahata

pci: clean up of pci_init_wmask().

This patch replaces for loop by memset in pci_init_wmask().

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

c34369d4 12/01/2009 05:51 pm Isaku Yamahata

pci: kill unnecessary included in pci.c

including pci_host.h isn't needed by pci.c.
This patch kills it.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

42331e9f 12/01/2009 05:51 pm Isaku Yamahata

pci_host: remove unnecessary & 0xff.

This patch removes unnecessary & 0xff in pci_dev_find_by_addr().

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

c469e1dd 12/01/2009 05:51 pm Isaku Yamahata

pci: s/pci_find_host_bus/pci_find_root_bus/g

This patch renames pci_find_host_bus() to pci_find_root_bus()
as suggested by "Michael S. Tsirkin" <>.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

070297d2 12/01/2009 05:51 pm Isaku Yamahata

pci: remove pci_sub_bus() by open coding.

Because pci_sub_bus() is used only once so eliminate it
by open coding as suggested by "Michael S. Tsirkin" <>.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

f08b32fe 12/01/2009 05:51 pm Isaku Yamahata

pci: shorten pci_host_{conf, data}_register_xxx function a bit.

pci_host_data_register_io_memory and its variants are too long a bit.
So shorten them. Now they are
pci_host_{conf, data}_register_{mmio, mmio_noswap, ioport}()

Signed-off-by: Isaku Yamahata <>...

8d6514f8 12/01/2009 05:51 pm Isaku Yamahata

pci: rename (pci_/pcie_mmcfg_)addr_to_dev

This patch renames pci_addr_to_dev(), pcie_mmcfg_addr_to_dev()
to pci_dev_find_by_addr(), pcie_dev_find_by_mmcfg_addr()
as "Michael S. Tsirkin" <> suggested.

Signed-off-by: Isaku Yamahata <>...

7ac901cd 12/01/2009 05:51 pm Isaku Yamahata

pci: remove pci_addr_to_config() by open code

This patch removes pci_addr_to_config() and open code it
as suggested by Michael S. Tsirkin <>.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

4677d8ed 12/01/2009 05:51 pm Michael S. Tsirkin

pci: simplify (pci_/pcie_mmcfg_)data_read()

Remove switch on length: we don't care about
high bits for value, so just return all ones
if no device. And add one assert().

Signed-off-by: Michael S. Tsirkin <>
Acked-by: Isaku Yamahata <>

b6243d99 12/01/2009 05:51 pm Isaku Yamahata

pci: move pci_data_{read, write}() declaration from pci.h to pci_host.h

Now pci host stuff has been moved from pci.[hc] to pci_host.[hc]
so the declaration of pci_data_{read, write}() should be in
pci_host.h
This patch moves them from pci.h to pci_host.h for consistency....

f88d7509 12/01/2009 05:51 pm Isaku Yamahata

pci: fix pci_info_device().

It printed wrong limit value of bridge.
This patch fixes it.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

18e08a55 12/01/2009 05:51 pm Michael S. Tsirkin

pci: pci.h cleanup: move out stuff not in pci.c

pci.h declares some functions which aren't
defined in pci.h. Clean up moving things
to appropriate headers, and update all users.

Signed-off-by: Michael S. Tsirkin <>

afa05235 12/01/2009 02:06 am Aurelien Jarno

tcg: initial mips support

Based on a patch from Arnaud Patard (Rtp) <>

A few words about design choices:
  • Two registers, at and t0, are reserved for TCG internal use. They are
    useful for bswap and 64-bit ops.
  • Most ops supports a constant argument with value 0, which is actually...
0cbfcd2b 12/01/2009 02:06 am Aurelien Jarno

tcg: increase TCG_MAX_OP_SIZE to 192

This is needed on a MIPS host and a 64-bit cross-endian target.

Signed-off-by: Aurelien Jarno <>

e7139c44 11/30/2009 05:18 pm Aurelien Jarno

target-mips: use physical address in lladdr

Currently the ll/sc instructions use the virtual address in both
user and system mode. Use the physical address insteead in system
mode.

Signed-off-by: Aurelien Jarno <>

25b91e32 11/30/2009 05:10 pm Aurelien Jarno

target-mips: add a function to do virtual -> physical translations

Signed-off-by: Aurelien Jarno <>

1147e189 11/30/2009 05:10 pm Aurelien Jarno

target-mips: split code raising MMU exception in a separate function

Signed-off-by: Aurelien Jarno <>

0ae43045 11/30/2009 05:06 pm Aurelien Jarno

target-mips: factorize load/store code in op_helper.c

Signed-off-by: Aurelien Jarno <>

bbe813a2 11/30/2009 04:42 pm Aurelien Jarno

Fix commit a167ba50851cdac2fa36633587e98c5956cd6b18

Signed-off-by: Aurelien Jarno <>

a167ba50 11/29/2009 07:00 pm Aurelien Jarno

Add support for GNU/kFreeBSD

Signed-off-by: Aurelien Jarno <>

3098b9fd 11/27/2009 07:42 pm Aurelien Jarno

Revert "vga: do not resize the screen on hw_invalidate"

This causes ctrl+alt+u or ctrl+alt+f to not work when windows hasn't been
resized first. Other graphic emulators do resize the screen on
hw_invalidate.

This reverts commit 0bd8246bfec1dfb2eb959f52db535572c0260f4c.

63e86b2e 11/24/2009 08:53 pm Stefan Weil

Makefile: Fix spelling

Replace defconfing -> defconfig

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

fea0ac23 11/24/2009 08:51 pm Arnaud Patard

cpu-all.h: fix cpu_get_real_ticks on mips host

Fix cpu_get_real_ticks:
- check should be done on __mips and not __mips_isa_rev
- linux kernels >= 2.6.25 are emulating the 2 needed rdhwr functions
so it's safe to use rdhwr.

This is better than what's currently in but it doesn't mean it works nicely...

7d301752 11/24/2009 08:51 pm Aurelien Jarno

tcg: fix tcg_regset_{set,reset}_reg with more than 32 registers

Signed-off-by: Aurelien Jarno <>

016b2b28 11/24/2009 08:51 pm Aurelien Jarno

tcg/ppc64,x86_64: fix constraints of op_qemu_st64

This op only takes two arguments, not two.

Signed-off-by: Aurelien Jarno <>

3ca05588 11/24/2009 08:51 pm Arnaud Patard

linux-user: remove hardcoded value of _NSIG in signal.c

In a bunch of places, 64 is used as value of _NSIG but it's wrong
at least on MIPS were _NSIG is 128.

Based on a patch from Arnaud Patard <>

Signed-off-by: Aurelien Jarno <>

e9273455 11/24/2009 03:10 pm Paul Brook

Add missing break.

Signed-off-by: Paul Brook <>

b0293e54 11/23/2009 08:53 pm Anthony Liguori

Update SeaBIOS

This includes the following changes:

42bc394 Make sure to reenable ata interrupts even on error.
494dfc6 Move SeaBIOS post/boot stack to avoid conflict with gPXE.
3133e38 Test for broken gcc -combine on FC12.

Signed-off-by: Anthony Liguori <>

426f5abc 11/22/2009 11:35 pm Paul Brook

ARM atomic ops rewrite

Implement ARMv6 atomic ops (ldrex/strex) using the same trick as PPC.

Signed-off-by: Paul Brook <>

abd0c6bd 11/22/2009 11:27 pm Paul Brook

BCD cleanup

Combine multiple BCD implementations.

Signed-off-by: Paul Brook <>

1dfe3943 11/22/2009 11:27 pm Paul Brook

DS1338 RTC

Implement MAXIM SD1338 RTC+NVRAM.

Signed-off-by: Paul Brook <>

3cd035d8 11/22/2009 11:27 pm Paul Brook

GPIO I2C rework

Reqrite bitbanging I2C implementation. New code improves stop/start
condition handling, and gives more accurate input line level.

Introduce intermediate abstraction layer for I2C bitbanging that
is not connected via a GPIO port.

Signed-off-by: Paul Brook <>

eee48504 11/22/2009 11:27 pm Paul Brook

ARM RealView I2C

Add ARM Realview I2C host emulation.

Signed-off-by: Paul Brook <>

a992fe3d 11/22/2009 11:24 pm Paul Brook

Makefile dependencies for device configs

Add makefile dependencies for target specific device configs.
These will copy the default config if none exists, obsoleting the old
configure time code. If a config already exists but is older than the
default then print a warning....

60c9af07 11/22/2009 03:37 pm Aurelien Jarno

target-mips: fix physical address type in MMU functions

Signed-off-by: Aurelien Jarno <>

c0d674b5 11/22/2009 03:19 pm Hervé Poussineau

[WIN32] Enable -k option on Windows too

There is no reason to have it disabled on this platform.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Aurelien Jarno <>

2a6e32dd 11/22/2009 03:12 pm Aurelien Jarno

target-mips: make CP0_LLAddr register CPU dependent

Depending on the CPU, CP0_LLAddr is either read-only or read-write,
and the returned value can be shifted by a variable amount of bits.

Signed-off-by: Aurelien Jarno <>
Signed-off-by: Hervé Poussineau <>

5499b6ff 11/22/2009 03:12 pm Aurelien Jarno

target-mips: rename CP0_LLAddr into lladdr

The variable CP0_LLAddr represent the full lladdr, not the actual
register value, which is only part of this value and depends on the
CPU.

Signed-off-by: Aurelien Jarno <>

dd4239d6 11/21/2009 11:32 am Juergen Lock

Allow build of linuxboot.S with old assemblers

In the spirit of ff56954baf9cfab5cbbe18d10b4a09e4a17f39a8, fix the
build of linuxboot.S with old as(1) (as found in some BSD base systems)
by emitting the bytes of the insn it doesn't like instead.

Signed-off-by: Juergen Lock <>...

929fe497 11/21/2009 11:32 am Juergen Lock

Avoid segfault on net_tap_init() failure

Check for fd == -1 there.

Signed-off-by: Juergen Lock <>
Signed-off-by: Blue Swirl <>

2f859a3c 11/21/2009 11:32 am Juergen Lock

tap-bsd: handle ifname on FreeBSD hosts

Handle ifname on FreeBSD hosts; if no ifname is given, always start
the search from tap0. (Simplified/cleaned up version of what has been
in the FreeBSD ports for a long time.)

Signed-off-by: Juergen Lock <>...

39ca4c08 11/21/2009 11:32 am Juergen Lock

Fix tap breakage on BSD hosts (no IFF_VNET_HDR)

net/tap-bsd.c was assuming IFF_VNET_HDR was always available, which
I think isn't true on any BSD.

Signed-off-by: Juergen Lock <>
Signed-off-by: Blue Swirl <>

22a2bdcb 11/21/2009 11:06 am Blue Swirl

Fix OpenBSD build of qemu-io

GCC 3.3.5 generates warnings for static forward declarations of data, so
rearrange code to use static forward declarations of functions instead.

Use <getopt.h> for optind instead of local definition.

Signed-off-by: Blue Swirl <>

3a3fb96d 11/21/2009 01:40 am Stefan Weil

configure: Fix spelling in comment and rework the comment

  • Replace vill -> will.
  • Comment was formatted to make it more readable
    and to conform to the coding standard, too.
  • Description of foo="" was completed.

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