[Qemu-devel] [PATCH 5/5] Add Cortex-A15 CPU definition

2012-01-25 Thread Peter Maydell
kernel which has been compiled for an A15 without LPAE enabled. Reviewed-by: Andreas Färber Signed-off-by: Peter Maydell --- target-arm/cpu.h|1 + target-arm/helper.c | 56 ++ 2 files changed, 52 insertions(+), 5 deletions(-) diff --git a

[Qemu-devel] [PATCH 4/5] Add dummy implementation of generic timer cp15 registers

2012-01-25 Thread Peter Maydell
ff-by: Peter Maydell --- target-arm/cpu.h|1 + target-arm/helper.c | 12 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 42c53a7..7442c99 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -382,6 +382,7 @@

[Qemu-devel] [PULL 0/5] target-arm queue

2012-01-25 Thread Peter Maydell
ream Mark Langsdorf (1): arm: store the config_base_register during cpu_reset Peter Maydell (4): target-arm: Fix implementation of TLB invalidate operations target-arm/helper.c: Don't assume softfloat int32 is 32 bits only Add dummy implementation of generic timer

Re: [Qemu-devel] TCG register allocator

2012-01-25 Thread Peter Maydell
On 25 January 2012 15:55, Xin Tong wrote: > The segfault is caused by jumping to the middle of an instruction. so > i want to know which TB jumps here. (a) Assuming it doesn't take too long to get there, you should be able to get this information by turning on the debug log via -d whatever. If it

Re: [Qemu-devel] [PATCH v9 7/9] hw/lan9118: Add basic 16-bit mode support.

2012-01-25 Thread Peter Maydell
On 20 January 2012 10:53, Evgeny Voevodin wrote: > @@ -294,6 +304,14 @@ static const VMStateDescription vmstate_lan9118 = { >         VMSTATE_INT32(rxp_offset, lan9118_state), >         VMSTATE_INT32(rxp_size, lan9118_state), >         VMSTATE_INT32(rxp_pad, lan9118_state), > +        VMSTATE_UINT

Re: [Qemu-devel] [PATCH v9 7/9] hw/lan9118: Add basic 16-bit mode support.

2012-01-25 Thread Peter Maydell
On 25 January 2012 17:04, Andreas Färber wrote: > Am 25.01.2012 17:35, schrieb Peter Maydell: >> >> You need to bump .version_id and make your new fields >>    VMSTATE_UINT32(write_word_prev_offset, lan9118_state, 2), > >    VMSTATE_UINT32_V(write_word_prev_offset, l

Re: [Qemu-devel] TCG register allocator

2012-01-25 Thread Peter Maydell
On 25 January 2012 19:10, Xin Tong wrote: Peter Maydell wrote: >> cpu_restore_state() calls gen_intermediate_code_pc() to >> request a retranslation of the TB with extra info to allow >> us to do a host-PC-to-guest-PC lookup >>  * Note that gen_intermediate_code_pc()

Re: [Qemu-devel] TCG register allocator

2012-01-25 Thread Peter Maydell
On 25 January 2012 19:25, Xin Tong wrote: > as I mentioned. In my current implementation of coremu, the code could > be executed when it is modified. so the modifications need to be > atomic. I think I need a scratch area in which the restore_cpu_state > needs to be generated while leaving the alr

Re: [Qemu-devel] [PATCH v2 6/9] hw/vexpress.c: Factor out daughterboard-specific initialization

2012-01-25 Thread Peter Maydell
On 25 January 2012 18:04, Andreas Färber wrote: > Am 24.01.2012 13:39, schrieb Peter Maydell: >> +struct VEDBoardInfo { >> +    const target_phys_addr_t *motherboard_map; >> +    const target_phys_addr_t loader_start; > > const for a value type in a struct looks fi

[Qemu-devel] [PATCH 3/5] arm: add secondary cpu boot callbacks to arm_boot.c

2012-01-26 Thread Peter Maydell
tform models. Signed-off-by: Mark Langsdorf Signed-off-by: Peter Maydell --- hw/arm-misc.h | 17 + hw/arm_boot.c | 54 +++--- 2 files changed, 60 insertions(+), 11 deletions(-) diff --git a/hw/arm-misc.h b/hw/arm-misc.h index 6e

[Qemu-devel] [PATCH 2/5] ahci: add support for non-PCI based controllers

2012-01-26 Thread Peter Maydell
From: Rob Herring Add support for ahci on sysbus. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf Reviewed-by: Andreas Färber Signed-off-by: Peter Maydell --- hw/ide/ahci.c | 44 1 files changed, 44 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH 5/5] arm: SoC model for Calxeda Highbank

2012-01-26 Thread Peter Maydell
From: Rob Herring Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf Signed-off-by: Peter Maydell --- Makefile.target |1 + hw/highbank.c | 330 +++ 2 files changed, 331 inser

[Qemu-devel] [PATCH 4/5] arm_boot: support board IDs more than 16 bits wide

2012-01-26 Thread Peter Maydell
Support passing a board ID value to the kernel in r1 that is more than 16 bits wide. This is needed to pass the '-1 == invalid' value for boards which only support device tree booting. Signed-off-by: Peter Maydell Tested-by: Mark Langsdorf --- hw/arm_boot.c | 11 +-- 1 fil

[Qemu-devel] [PULL 0/5] arm-devs queue (to go after target-arm queue)

2012-01-26 Thread Peter Maydell
available in the git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git arm-devs.for-upstream Mark Langsdorf (1): arm: add secondary cpu boot callbacks to arm_boot.c Peter Maydell (1): arm_boot: support board IDs more than 16 bits wide Rob Herring (3): Add x

[Qemu-devel] [PATCH 1/5] Add xgmac ethernet model

2012-01-26 Thread Peter Maydell
Langsdorf Signed-off-by: Peter Maydell --- Makefile.target |1 + hw/xgmac.c | 421 +++ 2 files changed, 422 insertions(+), 0 deletions(-) create mode 100644 hw/xgmac.c diff --git a/Makefile.target b/Makefile.target index e554d33

Re: [Qemu-devel] [RFC 00/15] Refactor PC machine to take advantage of QOM

2012-01-26 Thread Peter Maydell
On 26 January 2012 19:00, Anthony Liguori wrote: > We need to modeled MemoryRegions and qemu_irq in QOM too. +1 : this ought to let us get rid of SysBus... >  MemoryRegions > shouldn't be that difficult.  Our habit of passing qemu_irq's as arrays > without > an explicit size will probably requi

Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-26 Thread Peter Maydell
On 23 January 2012 07:20, Peter A. G. Crosthwaite wrote: > --- a/vl.c > +++ b/vl.c > @@ -233,6 +233,7 @@ int boot_menu; >  uint8_t *boot_splash_filedata; >  int boot_splash_filedata_size; >  uint8_t qemu_extra_params_fw[2]; > +const char *qemu_kerndtb = NULL; > >

Re: [Qemu-devel] TB chaining in QEMU

2012-01-26 Thread Peter Maydell
On 26 January 2012 19:52, Xin Tong wrote: > It seems to me that when QEMU emits a TB to TB transition, it does not look > for whether the code has already been generated or not ( at least x86 on x86 > emulation) . it just lay down a 4 byte address, waiting to be patched later. > Am I right ? Yes,

Re: [Qemu-devel] [Android-virt] [PATCH 02/12] arm: make the number of GIC interrupts configurable

2012-01-27 Thread Peter Maydell
On 27 January 2012 00:33, Rusty Russell wrote: > Peter Maydell wrote: >> Anyway, if we would otherwise die horribly later on we should >> catch these cases, but it would be good to have at least a comment >> saying that these are implementation limitations rather than

Re: [Qemu-devel] [PATCH 0/3] linux-user: Implement missing *xattr calls

2012-01-27 Thread Peter Maydell
Ping^2 ? -- PMM On 4 January 2012 11:39, Peter Maydell wrote: > Ping? > > -- PMM > > On 14 December 2011 15:37, Peter Maydell wrote: >> These patches implement the missing *xattr syscalls: >>  listxattr >>  fsetattr, fgetattr, fremovexattr, flistxattr >

Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-28 Thread Peter Crosthwaite
act as a blocker on this patch series? Regards, Peter On Fri, Jan 27, 2012 at 6:25 PM, Markus Armbruster wrote: > Eric Blake writes: > > > On 01/26/2012 12:34 PM, Scott Wood wrote: > >> On 01/24/2012 12:23 PM, Stefan Weil wrote: > >>> I'd prefer a different

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-28 Thread Peter Crosthwaite
, Adaption for arm should be fairly trivial. Peter On Fri, Jan 27, 2012 at 10:34:01PM +, Paul Brook wrote: > > > If compiled with CONFIG_FDT, allow user to specify a device tree file > using > > > the -dtb argument. If the machine supports it then the dtb will be > load

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-29 Thread Peter Maydell
On 29 January 2012 16:01, Grant Likely wrote: > On Sun, Jan 29, 2012 at 11:15:42AM +, Paul Brook wrote: >> Clearly we need to have some sort of FDT support.  However I'm unconvinced >> that it's the correct format for the primary data structure.  For one thing >> it's a hierarchical tree struc

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-29 Thread Peter Maydell
On 29 January 2012 18:48, Andreas Färber wrote: > Am 29.01.2012 17:01, schrieb Grant Likely: >> Okay, well at least let's start with this.  Here is an updated version of the >> patch that doesn't touch the board code.  It makes the -dtb option available >> to all ARM platforms. >> >> Even if dtb i

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-29 Thread Peter Crosthwaite
ll for > > embedded development as providing a .dtb file and having QEMU > > construct a machine that matches the data. > Another major issue with that is DTBs have little bits of software in them as well, such as the "chosen" node, which would need to be populated b

Re: [Qemu-devel] [PATCH] exec.c: Clarify comment about tlb_flush() flush_global parameter

2012-01-30 Thread Peter Maydell
Ping? -- PMM On 17 January 2012 13:23, Peter Maydell wrote: > Clarify the comment about tlb_flush()'s flush_global parameter, > so it is clearer what it does and why it is OK that the implementation > currently ignores it. > > Signed-off-by: Peter Maydell > --- > Min

[Qemu-devel] [PATCH v3 0/7] Add support for vexpress-a15

2012-01-30 Thread Peter Maydell
atches are now in master * dropped spurious 'const' from 'factor out daughterboard' patch * rebased on current master and updated a15mpcore.c with QOM changes Peter Maydell (7): hw/a15mpcore.c: Add Cortex-A15 private peripheral model hw/vexpress.c: Make motherboard peri

[Qemu-devel] [PATCH v3 6/7] arm_boot: Pass base address of GIC CPU interface, not whole GIC

2012-01-30 Thread Peter Maydell
address directly. Signed-off-by: Peter Maydell --- hw/arm-misc.h |2 +- hw/arm_boot.c |8 hw/realview.c | 12 +++- hw/vexpress.c |6 -- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/hw/arm-misc.h b/hw/arm-misc.h index 5e5204b..306013a 100644 --- a

[Qemu-devel] [PATCH v3 2/7] hw/vexpress.c: Make motherboard peripheral memory map table-driven

2012-01-30 Thread Peter Maydell
y A9. Signed-off-by: Peter Maydell Reviewed-by: Andreas Färber --- hw/vexpress.c | 137 +++-- 1 files changed, 103 insertions(+), 34 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 64fab45..8c4d3b3 100644 --- a/hw/vexpress.c

[Qemu-devel] [PATCH v3 3/7] hw/vexpress.c: Move secondary CPU boot code to SRAM

2012-01-30 Thread Peter Maydell
" RAM page we were using before. Signed-off-by: Peter Maydell --- hw/vexpress.c | 16 ++-- 1 files changed, 2 insertions(+), 14 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 8c4d3b3..99a9690 100644 --- a/hw/vexpress.c +++ b/hw/vexpress.c @@ -30,13 +30,9 @@

[Qemu-devel] [PATCH v3 5/7] hw/vexpress.c: Instantiate the motherboard CLCD

2012-01-30 Thread Peter Maydell
mux which video output to pass through to the outside world. Signed-off-by: Peter Maydell Reviewed-by: Andreas Färber --- hw/vexpress.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 26537f7..27459d9 100644 --- a/hw/vexpress.c +++ b/hw/

Re: [Qemu-devel] TB chaining in QEMU

2012-01-30 Thread Peter Maydell
On 27 January 2012 02:55, Xin Tong wrote: > I think intel new architecture does split instruction cache/data cache. > http://upload.wikimedia.org/wikipedia/commons/6/64/Intel_Nehalem_arch.svg It may have a separate I/D cache in the implementation, but from the programmer's point of view they are

[Qemu-devel] [PATCH v3 4/7] hw/vexpress.c: Factor out daughterboard-specific initialization

2012-01-30 Thread Peter Maydell
Factor out daughterboard specifics into a data structure and daughterboard initialization function, in preparation for adding vexpress-a15 support. Signed-off-by: Peter Maydell --- hw/vexpress.c | 118 - 1 files changed, 83 insertions

[Qemu-devel] [PATCH v3 7/7] hw/vexpress.c: Add vexpress-a15 machine

2012-01-30 Thread Peter Maydell
Add the vexpress-a15 machine, and the A-Series memory map it uses. Signed-off-by: Peter Maydell Reviewed-by: Andreas Färber --- hw/vexpress.c | 141 + 1 files changed, 141 insertions(+), 0 deletions(-) diff --git a/hw/vexpress.c b/hw

[Qemu-devel] [PATCH v3 1/7] hw/a15mpcore.c: Add Cortex-A15 private peripheral model

2012-01-30 Thread Peter Maydell
Add a model of the Cortex-A15 memory mapped private peripheral space. This is fairly simple because the only memory mapped bit of the A15 is the GIC. Note that we don't currently model a VGIC and therefore don't map the VGIC related bits of the GIC. Signed-off-by: Pet

Re: [Qemu-devel] [PATCH 4/4] pl031: switch clock base to rtc_clock

2012-01-30 Thread Peter Maydell
On 20 January 2012 12:06, Paolo Bonzini wrote: > This lets the user specify the desired semantics.  By default, the RTC > will follow adjustments from the host's NTP client, and will remain in > sync when the virtual machine is stopped.  The previous behavior, which > provides determinism with bot

Re: [Qemu-devel] [PATCH 0/4] Use rtc_clock uniformly for ARM

2012-01-30 Thread Peter Maydell
On 30 January 2012 16:42, Paolo Bonzini wrote: > On 01/20/2012 01:06 PM, Paolo Bonzini wrote: >> This series uses rtc_clock uniformly in device models that provide RTC >> functionality.  This will let users choose the desired semantics for >> the clock. >> >> This is most important with qtest, whe

Re: [Qemu-devel] [PATCH 08/23] qdev: register all types natively through QEMU Object Model

2012-01-30 Thread Peter Maydell
On 30 January 2012 21:08, Anthony Liguori wrote: > This was done in a mostly automated fashion.  I did it in three steps and then > rebased it into a single step which avoids repeatedly touching every file in > the tree. > > The first step was a sed-based addition of the parent type to the subclas

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add a section for the host OS and a W32 maintainer

2012-01-31 Thread Peter Maydell
On 31 January 2012 13:35, Kevin Wolf wrote: > Am 27.01.2012 18:53, schrieb Stefan Weil: >> +Hosts: >> +-- >> + >> +LINUX >> +L: qemu-devel@nongnu.org >> +S: Maintained >> +F: linux-* >> +F: linux-headers/ >> + >> +POSIX >> +L: qemu-devel@nongnu.org >> +S: Maintained >> +F: *posix* > > How can

Re: [Qemu-devel] [PATCH v2] arm: add device tree support

2012-02-01 Thread Peter Maydell
On 1 February 2012 13:04, Anthony Liguori wrote: > How does it race?  Devices normally never touch memory so a loader device > will be the only thing mucking with memory. The obvious one is "loader reset function wants to set starting PC to entry point of kernel/etc" vs "CPU device reset wants to

Re: [Qemu-devel] [PATCH v11 4/9] ARM: exynos4210: PWM support.

2012-02-01 Thread Peter Maydell
On 31 January 2012 08:31, Evgeny Voevodin wrote: > On 01/30/2012 11:38 AM, Evgeny Voevodin wrote: >> >> Signed-off-by: Evgeny Voevodin >> Reviewed-by: Peter Maydell >> --- > > This patch should not contain "Reviewed-by:" since QOM usage was added. >

Re: [Qemu-devel] [PATCH v11 6/9] ARM: exynos4210: MCT support.

2012-02-01 Thread Peter Maydell
On 31 January 2012 08:32, Evgeny Voevodin wrote: > On 01/30/2012 11:38 AM, Evgeny Voevodin wrote: >> >> Signed-off-by: Evgeny Voevodin >> Reviewed-by: Peter Maydell > > This patch should not contain "Reviewed-by:" since QOM usage was added. > Apologise for

Re: [Qemu-devel] [PATCH v11 9/9] Exynos4210: added display controller implementation

2012-02-01 Thread Peter Maydell
On 31 January 2012 08:33, Evgeny Voevodin wrote: > On 01/30/2012 11:38 AM, Evgeny Voevodin wrote: >> >> From: Mitsyanko Igor >> >> Exynos4210 display controller (FIMD) has 5 hardware windows with alpha and >> chroma key blending functions. >> >> Signed

Re: [Qemu-devel] [PATCH v11 3/9] ARM: exynos4210: UART support

2012-02-01 Thread Peter Maydell
On 30 January 2012 07:38, Evgeny Voevodin wrote: > From: Maksim Kozlov > > Add basic support of exynos4210 UART > > Signed-off-by: Maksim Kozlov > Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH v11 1/9] ARM: exynos4210: IRQ subsystem support.

2012-02-01 Thread Peter Maydell
On 30 January 2012 07:38, Evgeny Voevodin wrote: > Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH v11 5/9] ARM: exynos4210: basic Power Management Unit implementation

2012-02-01 Thread Peter Maydell
On 30 January 2012 07:38, Evgeny Voevodin wrote: > From: Maksim Kozlov > > Patch adds basic model for Exynos4210 SoC PMU. > This model implements PMU registers just as a bulk of memory. Currently, > the only reason this device exists is that secondary CPU boot loader > uses PMU INFORM5 register a

[Qemu-devel] [PATCH] target-arm/helper.c: tb_flush() on CPU reset

2012-02-01 Thread Peter Maydell
Since target-arm has some CPUState fields for which we take the approach of baking assumptions about them into translated code and then calling tb_flush() when the fields change, we must also tb_flush on CPU reset, because reset is a change of those fields. Signed-off-by: Peter Maydell

Re: [Qemu-devel] [RFC] CODING_STYLE: Clarify style for enum and function type names

2012-02-01 Thread Peter Maydell
Ping^2 and cc'ing trivial. -- PMM On 23 January 2012 14:12, Peter Maydell wrote: > Since nobody seems to have disagreed, perhaps we should > just commit this? > > -- PMM > > On 13 January 2012 20:29, Peter Maydell wrote: >> Clarify that enum type names and func

[Qemu-devel] [PATCH] Makefile: Remove linux-headers/asm symlink on distclean

2012-02-01 Thread Peter Maydell
configure creates a linux-headers/asm symlink. Remove this when doing a distclean. Signed-off-by: Peter Maydell --- Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index d172cbf..2560b59 100644 --- a/Makefile +++ b/Makefile @@ -233,6 +233,7

Re: [Qemu-devel] [PATCH 09/23] qdev: kill of DeviceInfo

2012-02-01 Thread Peter Maydell
On 30 January 2012 21:08, Anthony Liguori wrote: > Subject: [PATCH 09/23] qdev: kill of DeviceInfo "kill off". -- PMM

Re: [Qemu-devel] [PATCH 21/23] object: sure up reference counting

2012-02-01 Thread Peter Maydell
Subject: [PATCH 21/23] object: sure up reference counting On 30 January 2012 21:08, Anthony Liguori wrote: > Subject: [PATCH 21/23] object: sure up reference counting "shore up", apparently, although I found that sufficiently unlikely in this context that it might be better to reword completely

Re: [Qemu-devel] [PATCH 22/23] container: make a decendent of Object

2012-02-01 Thread Peter Maydell
On 30 January 2012 21:09, Anthony Liguori wrote: > Subject: [PATCH 22/23] container: make a decendent of Object "descendant". -- PMM

Re: [Qemu-devel] [PATCH 00/23] qom: use Type system to register all devices

2012-02-01 Thread Peter Maydell
On 30 January 2012 21:16, Anthony Liguori wrote: > Patch 8/23 is an automated touch everything patch. It's kind of awkward having a patch series that is both long (number of patches) and wide (patches that require touching/conversion of every device in the tree), because the length means it needs

Re: [Qemu-devel] [PATCH RFC v2 4/8] qom: Introduce CPU class

2012-02-01 Thread Peter Maydell
On 1 February 2012 12:57, Andreas Färber wrote: > It's abstract and derived directly from TYPE_OBJECT. > Prepare a virtual reset method. > > Place it in hw/. Have user emulators pick it up via VPATH, building it > per target since they didn't use any qdev/QOM devices so far. >  ifdef CONFIG_LINUX

Re: [Qemu-devel] [PATCH 2/2] Run pod2man with --utf8 option to enable utf8 in manpages

2012-02-02 Thread Peter Maydell
On 2 February 2012 14:16, Michael Tokarev wrote: > +POD2MAN = pod2man --utf8 >  qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi >        $(call quiet-command, \ >          perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu.pod && \ > -         pod2man --section=1 --center=" " --release=

Re: [Qemu-devel] [PATCH 2/2] Run pod2man with --utf8 option to enable utf8 in manpages

2012-02-02 Thread Peter Maydell
On 2 February 2012 14:46, Michael Tokarev wrote: > Besides, this is a task for another patch, since this one "only" thing > this patch does is addresses the --utf8 issue.  Maybe it is so trivial > that adding --release here actually does fit nicely too.  I don't care > either way, what matters is

Re: [Qemu-devel] [PATCH v11 0/9] ARM: Samsung Exynos4210-based boards support.

2012-02-02 Thread Peter Maydell
On 30 January 2012 07:38, Evgeny Voevodin wrote: > This set of patches adds support for Samsung Exynos4210-based boards NURI and > SMDKC210. > Tested on Linux kernel v3.x series. > > Usage: > "-smp 2" option is mandatory for now. If it is then the board should complain about -smp 1. As it is, yo

Re: [Qemu-devel] [PATCH 03/15] target-arm: Clean includes

2012-02-02 Thread Peter Maydell
On 2 February 2012 21:12, Stefan Weil wrote: > Remove some include statements which are not needed. > > Cc: Peter Maydell > Signed-off-by: Stefan Weil > --- >  target-arm/helper.c |    5 - >  1 files changed, 0 insertions(+), 5 deletions(-) > > diff --git a/targe

[Qemu-devel] [PATCH 2/2] linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME

2012-02-03 Thread Peter Maydell
Add support for the prctl options PR_GET_NAME and PR_SET_NAME, which take or return a name in a 16 byte buffer pointed to by arg2. Signed-off-by: Peter Maydell --- linux-user/syscall.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/linux-user

[Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME

2012-02-03 Thread Peter Maydell
2. The only other prctl options which take pointer arguments are all architecture specific, so there didn't seem much point in adding them (they all work like PR_GET_PDEATHSIG in that they pass an int* to be filled in); we'd have to actually emulate them if we cared about them. Peter

[Qemu-devel] [PATCH 1/2] linux-user/syscall.c: Fix indentation in prctl handling

2012-02-03 Thread Peter Maydell
Clean up the odd indentation of this switch statement before we double its size by adding new cases to it. Signed-off-by: Peter Maydell --- linux-user/syscall.c | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/linux-user/syscall.c b/linux

[Qemu-devel] [PATCH v4 2/7] hw/vexpress.c: Make motherboard peripheral memory map table-driven

2012-02-03 Thread Peter Maydell
y A9. Signed-off-by: Peter Maydell Reviewed-by: Andreas Färber --- hw/vexpress.c | 137 +++-- 1 files changed, 103 insertions(+), 34 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 64fab45..8c4d3b3 100644 --- a/hw/vexpress.c

[Qemu-devel] [PATCH v4 3/7] hw/vexpress.c: Move secondary CPU boot code to SRAM

2012-02-03 Thread Peter Maydell
" RAM page we were using before. Signed-off-by: Peter Maydell --- hw/vexpress.c | 16 ++-- 1 files changed, 2 insertions(+), 14 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 8c4d3b3..99a9690 100644 --- a/hw/vexpress.c +++ b/hw/vexpress.c @@ -30,13 +30,9 @@

[Qemu-devel] [PATCH v4 1/7] hw/a15mpcore.c: Add Cortex-A15 private peripheral model

2012-02-03 Thread Peter Maydell
Add a model of the Cortex-A15 memory mapped private peripheral space. This is fairly simple because the only memory mapped bit of the A15 is the GIC. Note that we don't currently model a VGIC and therefore don't map the VGIC related bits of the GIC. Signed-off-by: Pet

[Qemu-devel] [PATCH v4 7/7] hw/vexpress.c: Add vexpress-a15 machine

2012-02-03 Thread Peter Maydell
Add the vexpress-a15 machine, and the A-Series memory map it uses. Signed-off-by: Peter Maydell Reviewed-by: Andreas Färber --- hw/vexpress.c | 141 + 1 files changed, 141 insertions(+), 0 deletions(-) diff --git a/hw/vexpress.c b/hw

[Qemu-devel] [PATCH v4 4/7] hw/vexpress.c: Factor out daughterboard-specific initialization

2012-02-03 Thread Peter Maydell
Factor out daughterboard specifics into a data structure and daughterboard initialization function, in preparation for adding vexpress-a15 support. Signed-off-by: Peter Maydell --- hw/vexpress.c | 118 - 1 files changed, 83 insertions

[Qemu-devel] [PATCH v4 5/7] hw/vexpress.c: Instantiate the motherboard CLCD

2012-02-03 Thread Peter Maydell
mux which video output to pass through to the outside world. Signed-off-by: Peter Maydell Reviewed-by: Andreas Färber --- hw/vexpress.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 26537f7..27459d9 100644 --- a/hw/vexpress.c +++ b/hw/

[Qemu-devel] [PATCH v4 0/7] Add support for vexpress-a15

2012-02-03 Thread Peter Maydell
ter and updated a15mpcore.c with QOM changes Peter Maydell (7): hw/a15mpcore.c: Add Cortex-A15 private peripheral model hw/vexpress.c: Make motherboard peripheral memory map table-driven hw/vexpress.c: Move secondary CPU boot code to SRAM hw/vexpress.c: Factor out daughterboard-specific initial

[Qemu-devel] [PATCH v4 6/7] arm_boot: Pass base address of GIC CPU interface, not whole GIC

2012-02-03 Thread Peter Maydell
address directly. Signed-off-by: Peter Maydell --- hw/arm-misc.h |2 +- hw/arm_boot.c |8 hw/realview.c | 12 +++- hw/vexpress.c |6 -- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/hw/arm-misc.h b/hw/arm-misc.h index 5e5204b..306013a 100644 --- a

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add hw/highbank.c maintainer

2012-02-03 Thread Peter Maydell
+ b/MAINTAINERS > @@ -237,6 +237,11 @@ M: Peter Maydell >  S: Maintained >  F: hw/versatilepb.c > > +Calxeda Highbank > +M: Mark Langsdorf > +S: Supported > +F: hw/highbank.c > + Thanks for submitting this. I think your entry should go at the top, above 'Gumstix'

Re: [Qemu-devel] sigaltstack bug in qemu (testing on qemu-ppc)

2012-02-04 Thread Peter Maydell
On 4 February 2012 14:26, Alex Barcelo wrote: > I am barely able to understand this inline function: > > static inline int sas_ss_flags(unsigned long sp) > { >    return (target_sigaltstack_used.ss_size == 0 ? SS_DISABLE >            : on_sig_stack(sp) ? SS_ONSTACK : 0); > } > (signal.c @97) > > .

Re: [Qemu-devel] [PATCH v2 26/27] omap_clk: convert to QOM

2012-02-06 Thread Peter Maydell
moved to a separate loop for simplicity. > > Cc: Peter Maydell > Signed-off-by: Paolo Bonzini > --- >  hw/omap.h     |    4 + >  hw/omap1.c    |    6 +- >  hw/omap2.c    |   16 ++-- >  hw/omap_clk.c |  357 >  4 file

Re: [Qemu-devel] Qemu atags passing in register.

2012-02-06 Thread Peter Maydell
On 6 February 2012 12:19, d...@ucore.info wrote: > On PandaBoard the u-boot is always passing DTF/Atags pointer in r2 > register, and I'm kind of depending on it. I need to emulate this > behavior by -initrd qemu's argument. However it seems that > qemu-system-arm zeros the registers on the start,

Re: [Qemu-devel] [PATCH RFC v3 03/21] qom: Introduce CPU class

2012-02-06 Thread Peter Maydell
On 6 February 2012 19:24, Anthony Liguori wrote: > On 02/02/2012 08:59 PM, Andreas Färber wrote: >> +#define CPU(obj) OBJECT_CHECK(CPU, (obj), TYPE_CPU) >> +#define CPU_CLASS(class) OBJECT_CLASS_CHECK(CPUClass, (class), TYPE_CPU) >> +#define CPU_GET_CLASS(obj) OBJECT_GET_CLASS(CPUClass, (obj), TY

Re: [Qemu-devel] [PATCH] linux-user: fix fallocate

2012-02-06 Thread Peter Maydell
On 6 February 2012 20:45, Alexander Graf wrote: > Fallocate gets off_t parameters passed in, so we should also read them out > accordingly. > > Signed-off-by: Alexander Graf > --- >  linux-user/syscall.c |    3 ++- >  1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/linux-user/sy

[Qemu-devel] [Bug 928204] [NEW] build failure gentoo

2012-02-07 Thread Peter Johnson
Public bug reported: gcc 4.5.3, gentoo linux ./configure --prefix=/usr --sysconfdir=/etc --disable-strip --disable-werror --disable-kvm --disable-libiscsi --enable-nptl --enable-uuid --enable-linux-user --extra-ldflags=-Wl,-z,execheap --enable-linux-aio --enable-bluez --disable-brlapi --disabl

Re: [Qemu-devel] KVM call agenda for Tuesday 7

2012-02-07 Thread Peter Maydell
On 7 February 2012 16:33, Anthony Liguori wrote: > OMAP clocks are devices.  Don't they belong in the devices hierarchy under > the omap-clocks branch? I think they should be interfaces, not devices. The device would be the PRCM (power, reset and clock manager) which provides a pile of registers

Re: [Qemu-devel] [PATCH RFC v3 02/21] qom: Add QOM support to user emulators

2012-02-07 Thread Peter Maydell
On 6 February 2012 19:16, Anthony Liguori wrote: > If we're going to go down this road, then I have a hard requirement.  We > need to build the common infrastructure only once. > > Otherwise build times are going to explode and we'll end up with > CONFIG_USER_ONLY #defines all over the place. You

Re: [Qemu-devel] [PATCH RFC v3 08/21] target-arm: Move CPU feature flags out of CPUState

2012-02-07 Thread Peter Maydell
On 3 February 2012 02:59, Andreas Färber wrote: > +static void sa11xx_class_init(ARMCPUClass *k, const ARMCPUInfo *info) > +{ > +    set_class_feature(k, ARM_FEATURE_STRONGARM); > +} >  static const ARMCPUInfo arm_cpus[] = { >     { >         .name = "arm926", >         .id = 0x41069265, > +    

Re: [Qemu-devel] [PATCH RFC v3 07/21] target-arm: Overwrite reset handler for ti925t

2012-02-07 Thread Peter Maydell
On 3 February 2012 02:59, Andreas Färber wrote: > The OMAPCP feature allows to switch between TI915T and TI925T via > cp15 c15_ticonfig register. Move reset into ti925t-specific callback. > > Signed-off-by: Andreas Färber > Cc: Peter Maydell > --- >  targe

Re: [Qemu-devel] [PATCH RFC v3 15/21] target-arm: Store VFP FPSID register in ARMCPUClass

2012-02-07 Thread Peter Maydell
On 3 February 2012 02:59, Andreas Färber wrote: > @@ -375,6 +383,7 @@ static const ARMCPUInfo arm_cpus[] = { >             0x0042, 0, 0, 0 >         }, >         .cp15_c1_sys = 0x00c50078, > +        .vfp_fpsid = 0x41034000, /* Guess */ >         .features = ARM_FEATURE(V7) | >                

Re: [Qemu-devel] [PATCH RFC v3 13/21] target-arm: Store JTAG_ID in ARMCPUClass

2012-02-07 Thread Peter Maydell
On 3 February 2012 02:59, Andreas Färber wrote: > That way we can remove some more CPUID cases without losing info. > > Signed-off-by: Andreas Färber > Cc: Peter Maydell > Cc: Andrzej Zaborowski > --- >  target-arm/cpu-core.h |    1 + >  target-arm/cpu.c      |    

[Qemu-devel] [PATCH] target-arm/helper.c: Correct FPSID value for Cortex-A9

2012-02-07 Thread Peter Maydell
The correct FPSID for the Cortex-A9 (according to the TRM) is 0x41033090 for the r0p0 that we claim to model. Signed-off-by: Peter Maydell --- target-arm/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index ea4f35f

Re: [Qemu-devel] [PATCH RFC v3 13/21] target-arm: Store JTAG_ID in ARMCPUClass

2012-02-07 Thread Peter Maydell
On 7 February 2012 18:41, Andreas Färber wrote: > Am 07.02.2012 18:47, schrieb Peter Maydell: >> On 3 February 2012 02:59, Andreas Färber wrote: >>> +    uint64_t jtag_id; >> >> If we're not using this anywhere we should just not have it. > > Andrzej w

[Qemu-devel] [PATCH] vl.c: Fix typo in variable name

2012-02-07 Thread Peter Maydell
Fix a typo in a local variable name. Signed-off-by: Peter Maydell --- vl.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vl.c b/vl.c index 63dd725..c4b3aab 100644 --- a/vl.c +++ b/vl.c @@ -2030,7 +2030,7 @@ static int configure_accelerator(void) const

Re: [Qemu-devel] [PATCH RFC v3 13/21] target-arm: Store JTAG_ID in ARMCPUClass

2012-02-07 Thread Peter Maydell
On 7 February 2012 22:07, Andreas Färber wrote: > Am 07.02.2012 20:06, schrieb Peter Maydell: >> On 7 February 2012 18:41, Andreas Färber wrote: >>> Andrzej will have had his reasons to put it in the code. This series >>> just moves code around so I don't w

[Qemu-devel] [PATCH 1/4] qemu-option: Add support for merged QemuOptsLists

2012-02-07 Thread Peter Maydell
Add support for option lists which are merged together, so that "-listname foo=bar -listname bar=baz" is equivalent to "-listname foo=bar,bar=baz" rather than generating two separate lists of options. Signed-off-by: Peter Maydell --- qemu-option.c |7 ++- qemu-option

[Qemu-devel] [PATCH 2/4] Make -machine/-enable-kvm options merge into a single list

2012-02-07 Thread Peter Maydell
bug where "-enable-kvm -machine foo" would ignore the '-enable-kvm' option, and "-machine foo -enable-kvm" would ignore the '-machine foo' option. Signed-off-by: Peter Maydell --- qemu-config.c |1 + vl.c |2 -- 2 files changed, 1 insertion

[Qemu-devel] [PATCH 0/4] arm: add device tree support (via machine opts)

2012-02-07 Thread Peter Maydell
fferences between Grant's v2 and this: * use -machine options rather than a global * patch 1/2 bug fixes * some rearrangement/cleanup of arm_load_kernel() code Grant Likely (1): arm: add device tree support Peter Maydell (3): qemu-option: Add support for merged QemuOptsLists Make -machine/-

[Qemu-devel] [PATCH 4/4] arm: add device tree support

2012-02-07 Thread Peter Maydell
From: Grant Likely If compiled with CONFIG_FDT, allow user to specify a device tree file using the -dtb argument. If the machine supports it then the dtb will be loaded into memory and passed to the kernel on boot. Signed-off-by: Jeremy Kerr Signed-off-by: Grant Likely [Peter Maydell: Use

[Qemu-devel] [PATCH 3/4] Make kernel, initrd and append be machine_opts

2012-02-07 Thread Peter Maydell
Make kernel, initrd, append be machine opts (ie -machine kernel=foo) with the old plain command line arguments as legacy/convenience equivalents. Signed-off-by: Peter Maydell --- qemu-config.c | 12 vl.c | 24 2 files changed, 28 insertions

Re: [Qemu-devel] [RFC PATCH v2 2/4] cadence_ttc: initial version of device model

2012-02-07 Thread Peter Crosthwaite
2012/2/7 Paul Brook > > Implemented cadence Triple Timer Counter (TCC) > > It looks like you're implementing a periodic timer as sequence of chained > oneshot timers. This is a bad idea. In qemu interrupt latency may be > high, > so you're likely to suffer from significant time skew. > > Ok, I

Re: [Qemu-devel] [PATCH 0/4] arm: add device tree support (via machine opts)

2012-02-08 Thread Peter Crosthwaite
Hi Peter, Anthony suggested to us the Idea of setting up bootloaders as devices in order to solve this command line argument problem. I have posted a patch to the mailing list ([RFC PATCH] arm boot: added QOM device definition) which is my first attempt at this for arm_boot, i.e. arm_boot.c is

Re: [Qemu-devel] [RFC PATCH v2 0/4]Zynq-7000 EPP platform model

2012-02-08 Thread Peter Crosthwaite
the TRM. We will request disclosure for the purposes of this review. > Paul > Peter

Re: [Qemu-devel] [RFC PATCH] arm boot: added QOM device definition

2012-02-08 Thread Peter Crosthwaite
e original command line format. You also need to fix all the other uses of arm_load_kernel. > > Ok. I wanted to put this idea forward for a single machine model (versatilepb in this case) as a proof of concept, before applying a significant change pattern to all the arm machines. If this approach is to be considered then I can recreate this series with the change pattern applied to all arm platforms. Paul > Peter

Re: [Qemu-devel] [RFC PATCH v2 2/4] cadence_ttc: initial version of device model

2012-02-08 Thread Peter Crosthwaite
t; If wrapping does not generate an interrupt, or wrap and match are > effectively > the same thing then you just need to transpose the counter onto a single > periodic timer. > > If the timers can be configured in both periodic and oneshot modes, then > you > may want to have different implementations based on that. > > I dont think this will be needed, the match mechanism detail above is more of an issue and is the underlying reason for the one shot chaining implementation. > Paul > Peter

Re: [Qemu-devel] [RFC PATCH] arm boot: added QOM device definition

2012-02-08 Thread Peter Crosthwaite
der object (common code or board init > function), > and how we arrange for it to have the right properties (filename from > -kernel, > board ID from specific machine) is something I haven't entirely figured > out. > > Peter Maydell just emailed a series today that export

Re: [Qemu-devel] [RFC PATCH] arm boot: added QOM device definition

2012-02-08 Thread Peter Crosthwaite
2012/2/8 Paul Brook > > > I suspect we want to replace the arm_load_kernel call with an > > > arm_linux_loader device with appropriate properties. > > > > Ok, so does this mean the machine model would still explicitly > instantiate > > the bootloader device? > > Yes. Bootloaders inherently have

Re: [Qemu-devel] [RFC PATCH v2 2/4] cadence_ttc: initial version of device model

2012-02-08 Thread Peter Crosthwaite
way or annother. For more complicated devices you need to know what > you're doing anyway :-) > > Ok, this would lead to a more minimal change then :). Just replace ptimer with QEMUTimer and stick with the incremental deadlines approach which is pretty much the code is as it stands. > Paul > Peter

Re: [Qemu-devel] [RFC PATCH] arm boot: added QOM device definition

2012-02-08 Thread Peter Crosthwaite
On Wed, Feb 8, 2012 at 10:41 PM, Alexander Graf wrote: > > On 08.02.2012, at 13:27, Paul Brook wrote: > > >> 2012/2/8 Paul Brook > >> > > I suspect we want to replace the arm_load_kernel call with an > > arm_linux_loader device with appropriate properties. > > Ok, so does this

<    1   2   3   4   5   6   7   8   9   10   >