Skip to content

Commit

Permalink
Merge branch 'upstream-merge'
Browse files Browse the repository at this point in the history
* upstream-merge: (575 commits)
  ssi: Add slave autoconnect helper
  MAINTAINERS: Added maintainerships for SSI
  xilinx_zynq: Added SPI controllers + flashes
  xilinx_spips: Xilinx Zynq SPI cntrlr device model
  petalogix-ml605: added SPI controller with n25q128
  xilinx_spi: Initial impl. of Xilinx SPI controller
  m25p80: Initial implementation of SPI flash device
  hw: Added generic FIFO API.
  stellaris: Removed SSI mux
  qdev: allow multiple qdev_init_gpio_in() calls
  ssi: Added create_slave_no_init()
  ssi: Implemented CS behaviour
  ssi: Support for multiple attached devices
  qemu-barrier: Fix compilation on i386 hosts
  target-sparc: Optimize conditionals using SUBCC
  target-sparc: Fall through from not-taken trap
  target-sparc: Cleanup "global" temporary allocation
  target-sparc: Use movcond for FMOV*R
  target-sparc: Use movcond in mulscc
  target-sparc: Move taddcctv and tsubcctv out of line
  ...

Signed-off-by: Marcelo Tosatti <[email protected]>
  • Loading branch information
matosatti committed Oct 11, 2012
2 parents 6b414d9 + 8e65440 commit 4d9367b
Show file tree
Hide file tree
Showing 423 changed files with 23,160 additions and 9,507 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ trace-dtrace.dtrace
*-linux-user
*-bsd-user
libdis*
libhw32
libhw64
libuser
linux-headers/asm
qapi-generated
Expand Down
9 changes: 5 additions & 4 deletions HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ emulators.

4. String manipulation

Do not use the strncpy function. According to the man page, it does
*not* guarantee a NULL-terminated buffer, which makes it extremely dangerous
to use. Instead, use functionally equivalent function:
void pstrcpy(char *buf, int buf_size, const char *str)
Do not use the strncpy function. As mentioned in the man page, it does *not*
guarantee a NULL-terminated buffer, which makes it extremely dangerous to use.
It also zeros trailing destination bytes out to the specified length. Instead,
use this similar function when possible, but note its different signature:
void pstrcpy(char *dest, int dest_buf_size, const char *src)

Don't use strcat because it can't check for buffer overflows, but:
char *pstrcat(char *buf, int buf_size, const char *s)
Expand Down
69 changes: 68 additions & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ S: Maintained
F: hw/xilinx_zynq.c
F: hw/zynq_slcr.c
F: hw/cadence_*
F: hw/xilinx_spips.c

CRIS Machines
-------------
Expand Down Expand Up @@ -349,9 +350,31 @@ PowerPC Machines
405
M: Alexander Graf <[email protected]>
L: [email protected]
S: Maintained
S: Odd Fixes
F: hw/ppc405_boards.c

Bamboo
M: Alexander Graf <[email protected]>
L: [email protected]
S: Odd Fixes
F: hw/ppc440_bamboo.c

e500
M: Alexander Graf <[email protected]>
M: Scott Wood <[email protected]>
L: [email protected]
S: Supported
F: hw/ppc/e500.[hc]
F: hw/ppc/e500plat.c

mpc8544ds
M: Alexander Graf <[email protected]>
M: Scott Wood <[email protected]>
L: [email protected]
S: Supported
F: hw/ppc/mpc8544ds.c
F: hw/mpc8544_guts.c

New World
M: Alexander Graf <[email protected]>
L: [email protected]
Expand All @@ -374,6 +397,19 @@ S: Odd Fixes
F: hw/ppc_prep.c
F: hw/prep_pci.[hc]

sPAPR
M: David Gibson <[email protected]>
M: Alexander Graf <[email protected]>
L: [email protected]
S: Supported
F: hw/spapr*

virtex_ml507
M: Edgar E. Iglesias <[email protected]>
L: [email protected]
S: Odd Fixes
F: hw/virtex_ml507.c

SH4 Machines
------------
R2D
Expand Down Expand Up @@ -457,6 +493,19 @@ S: Supported
F: hw/pci*
F: hw/piix*

ppc4xx
M: Alexander Graf <[email protected]>
L: [email protected]
S: Odd Fixes
F: hw/ppc4xx*.[hc]

ppce500
M: Alexander Graf <[email protected]>
M: Scott Wood <[email protected]>
L: [email protected]
S: Supported
F: hw/ppce500_*

SCSI
M: Paolo Bonzini <[email protected]>
S: Supported
Expand All @@ -469,11 +518,22 @@ M: Paul Brook <[email protected]>
S: Odd Fixes
F: hw/lsi53c895a.c

SSI
M: Peter Crosthwaite <[email protected]>
S: Maintained
F: hw/ssi.*
F: hw/m25p80.c

USB
M: Gerd Hoffmann <[email protected]>
S: Maintained
F: hw/usb*

VFIO
M: Alex Williamson <[email protected]>
S: Supported
F: hw/vfio*

vhost
M: Michael S. Tsirkin <[email protected]>
S: Supported
Expand Down Expand Up @@ -512,6 +572,7 @@ F: hw/xilinx_intc.c
F: hw/xilinx_ethlite.c
F: hw/xilinx_timer.c
F: hw/xilinx.h
F: hw/xilinx_spi.c

Subsystems
----------
Expand All @@ -531,6 +592,12 @@ M: Anthony Liguori <[email protected]>
S: Maintained
F: qemu-char.c

CPU
M: Andreas Färber <[email protected]>
S: Supported
F: qom/cpu.c
F: include/qemu/cpu.h

Device Tree
M: Peter Crosthwaite <[email protected]>
M: Alexander Graf <[email protected]>
Expand Down
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR)
SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS))

ifeq ($(SUBDIR_DEVICES_MAK),)
config-all-devices.mak:
$(call quiet-command,echo '# no devices' > $@," GEN $@")
else
config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
$(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@")
endif

-include $(SUBDIR_DEVICES_MAK_DEP)

Expand Down Expand Up @@ -157,7 +162,8 @@ tools-obj-y = $(oslib-obj-y) $(trace-obj-y) qemu-tool.o qemu-timer.o \
iohandler.o cutils.o iov.o async.o
tools-obj-$(CONFIG_POSIX) += compatfd.o

qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y)
qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y) $(qapi-obj-y) \
qapi-visit.o qapi-types.o
qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y) $(block-obj-y)
qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y)

Expand Down Expand Up @@ -208,7 +214,7 @@ $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)

qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(tools-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y)

QEMULIBS=libhw32 libhw64 libuser libdis libdis-user
QEMULIBS=libuser libdis libdis-user

clean:
# avoid old build problems by removing potentially incorrect old files
Expand Down Expand Up @@ -297,7 +303,6 @@ install-confdir:

install-sysconfig: install-datadir install-confdir
$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(qemu_confdir)"
$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/cpus-x86_64.conf "$(DESTDIR)$(qemu_datadir)"

install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig install-datadir
$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
Expand Down
23 changes: 0 additions & 23 deletions Makefile.hw

This file was deleted.

14 changes: 6 additions & 8 deletions Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
# block-obj-y is code used by both qemu system emulation and qemu-img

block-obj-y = cutils.o iov.o cache-utils.o qemu-option.o module.o async.o
block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o
block-obj-y += nbd.o block.o blockjob.o aio.o aes.o qemu-config.o
block-obj-y += qemu-progress.o qemu-sockets.o uri.o
block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
Expand All @@ -59,7 +60,7 @@ endif
# suppress *all* target specific code in case of system emulation, i.e. a
# single QEMU executable should support all CPUs and machines.

common-obj-y = $(block-obj-y) blockdev.o
common-obj-y = $(block-obj-y) blockdev.o block/
common-obj-y += net.o net/
common-obj-y += qom/
common-obj-y += readline.o console.o cursor.o
Expand Down Expand Up @@ -89,10 +90,13 @@ common-obj-y += hw/
common-obj-y += ui/
common-obj-y += bt-host.o bt-vhci.o

common-obj-y += dma-helpers.o
common-obj-y += iov.o acl.o
common-obj-$(CONFIG_POSIX) += compatfd.o
common-obj-y += notify.o event_notifier.o
common-obj-y += qemu-timer.o qemu-timer-common.o
common-obj-y += qtest.o
common-obj-y += vl.o

common-obj-$(CONFIG_SLIRP) += slirp/

Expand All @@ -114,11 +118,6 @@ user-obj-y += qemu-user.o
user-obj-y += $(trace-obj-y)
user-obj-y += qom/

######################################################################
# libhw

hw-obj-y = vl.o dma-helpers.o qtest.o hw/

######################################################################
# libdis
# NOTE: the disassembler code is only needed for debugging
Expand Down Expand Up @@ -239,7 +238,6 @@ vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
QEMU_CFLAGS+=$(GLIB_CFLAGS)

nested-vars += \
hw-obj-y \
qga-obj-y \
block-obj-y \
qom-obj-y \
Expand Down
12 changes: 0 additions & 12 deletions Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ include ../config-host.mak
include config-devices.mak
include config-target.mak
include $(SRC_PATH)/rules.mak
ifneq ($(HWDIR),)
include $(HWDIR)/config.mak
endif

$(call set-vpath, $(SRC_PATH))
ifdef CONFIG_LINUX
Expand Down Expand Up @@ -80,14 +77,6 @@ obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o

tci-dis.o: QEMU_CFLAGS += -I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/tci

# HELPER_CFLAGS is used for all the legacy code compiled with static register
# variables
user-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS)

# Note: this is a workaround. The real fix is to avoid compiling
# cpu_signal_handler() in user-exec.c.
%/signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS)

#########################################################
# Linux user emulator target

Expand Down Expand Up @@ -165,7 +154,6 @@ all-obj-y += $(addprefix ../, $(universal-obj-y))
ifdef CONFIG_SOFTMMU
all-obj-y += $(addprefix ../, $(common-obj-y))
all-obj-y += $(addprefix ../libdis/, $(libdis-y))
all-obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
all-obj-y += $(addprefix ../, $(trace-obj-y))
else
all-obj-y += $(addprefix ../libuser/, $(user-obj-y))
Expand Down
Loading

0 comments on commit 4d9367b

Please sign in to comment.