Re: [Qemu-devel] [PATCH 1/1] Sun4m : TCX framebuffer hardware acceleration

2014-07-12 Thread Olivier Danet
On 09/07/2014 01:40, Mark Cave-Ayland wrote: On 29/05/14 20:48, Olivier Danet wrote: Hello Mark - Don't you like green ? It looks fine for me : http://temlib.org/pub/boot_netbsd6.jpg - checkpatch.pl did not find anything wrong with this patch. I will adjust style and spacings anyway

Re: [Qemu-devel] [PATCH 1/1] Sun4m : TCX framebuffer hardware acceleration

2014-05-29 Thread Olivier Danet
On 25/05/2014 22:28, Mark Cave-Ayland wrote: On 25/05/14 14:20, Olivier Danet wrote: Here is the original patch, I have changed email settings since then, it should work better. Alas, I have not merged latest QEMU changes (your CG3/TCX patches), so it will probably not compile

Re: [Qemu-devel] [PATCH 1/1] Sun4m : TCX framebuffer hardware acceleration

2014-05-25 Thread Olivier Danet
On 25/05/2014 11:50, Mark Cave-Ayland wrote: On 16/02/14 23:15, Olivier Danet wrote: The S24/TCX framebuffer is a mildly accelerated video card, with blitter, stippler and hardware cursor. * Solaris and NetBSD 6.x use all the hardware acceleration features. * The Xorg driver (used by Linux

Re: [Qemu-devel] target-sparc has inverse cwp logic for SAVE/RESTORE?

2014-05-18 Thread Olivier Danet
On 18/05/2014 14:48, Mark Cave-Ayland wrote: Hi all, I've been working on debugging a window-related OpenBIOS issue and noticed that the cwp register logic in QEMU appears to be backwards according to the SPARCv9 specification. From sections 6.3.6.1 and 6.3.6.2: The SAVE instruction

Re: [Qemu-devel] [PULL 00/10] input layer rework continued

2014-05-18 Thread Olivier Danet
On 16/05/2014 08:47, Gerd Hoffmann wrote: Hi, Update for the input layer. Add keycode mapping helpers, start switching over devices to the new input api, fixes. please pull, Gerd The following changes since commit 1a381811b495651ddfc2b50d7c8cfaaf375816b0: Merge

Re: [Qemu-devel] [PATCH 5/6] input: switch sparc32 kbd to new input api

2014-05-02 Thread Olivier Danet
On 29/04/2014 13:16, Gerd Hoffmann wrote: Hi, +[Q_KEY_CODE_META_R]= 122, +[Q_KEY_CODE_COMPOSE] = 67, }; This mapping does not look good on some details. COPY, FIND and CUT does not match the standard : [Q_KEY_CODE_COPY] = 52 : Should be 0x33=51

Re: [Qemu-devel] [PATCH 5/6] input: switch sparc32 kbd to new input api

2014-04-25 Thread Olivier Danet
On 24/04/2014 12:37, Gerd Hoffmann wrote: Nasty 0xe0 logic is gone. We map through QKeyCode now, giving us a nice, readable mapping table. Quick smoke test in OpenFirmware looks ok. Careful check from arch maintainers would be very nice, especially on the capslock and numlock logic. I'm

[Qemu-devel] [PATCH v3] sparc : 32bits integer division overflow

2014-03-20 Thread Olivier Danet
The signed integer division -0x8000___ / -1 must be handled separately to avoid an overflow on the QEMU host. Negative overflow must be a negative number for correct sign extension in Sparc64 mode. Use stdint.h constants. Signed-off-by: Olivier Danet oda...@caramail.com --- target

[Qemu-devel] [PATCH v2] sparc32 : Signed integer division overflow

2014-03-19 Thread Olivier Danet
The signed integer division -0x8000___ / -1 must be handled separately to avoid an overflow on the QEMU host. Signed-off-by: Olivier Danet oda...@caramail.com --- target-sparc/helper.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/target-sparc

[Qemu-devel] Re : Re: [PATCH] sparc32 : Signed integer division overflow

2014-03-18 Thread Olivier DANET
- Message d'origine - De : Mark Cave-Ayland Envoyés : 18.03.14 01:20 À : Olivier Danet Objet : Re: [Qemu-devel] [PATCH] sparc32 : Signed integer division overflow On 12/03/14 21:26, Olivier Danet wrote: Hi Olivier, Here is a patch for handling this corner case on SPARC32

[Qemu-devel] [PATCH] sparc32 : Signed integer division overflow

2014-03-12 Thread Olivier Danet
)) === The integer division 0x8000___ / -1 must be handled separately to avoid overflows on the QEMU host. Signed-off-by: Olivier Danet oda...@caramail.com --- diff --git

Re: [Qemu-devel] [PATCH] Sun4m : SCSI ESP controller

2014-02-21 Thread Olivier Danet
On 20/02/2014 09:58, Mark Cave-Ayland wrote: On 16/02/14 23:13, Olivier Danet wrote: Two small fixes for the ESP (AM53C94) SCSI controller * Signal the end of the DMA transfer after a SCSI command. * The status register (RSTAT) is cleared after reading the interrupt status register (RINTR

[Qemu-devel] [PATCH] Sun4m : SCSI ESP controller

2014-02-16 Thread Olivier Danet
signals levels. Fixes the bug esp0: !TC on DATA XFER with NetBSD https://bugs.launchpad.net/qemu/+bug/1055090 Signed-off-by: Olivier Danet oda...@caramail.com --- hw/scsi/esp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index 2d150bf..5e91077

[Qemu-devel] [PATCH] Sun4m: Set HostID in NVRAM

2014-02-16 Thread Olivier Danet
Ping. Repost ! On 30/12/2013 15:02, Artyom Tarasenko wrote: On Mon, Dec 30, 2013 at 12:51 AM, Olivier Danet oda...@caramail.com wrote: On SparcStations, the HostID field in the NVRAM is equal to the last three bytes of the MAC address (which is also stored in the NVRAM). This constant is used

[Qemu-devel] [PATCH] Sun4m : Timer RUN/STOP bit.

2014-02-16 Thread Olivier Danet
it is in User mode, but its state shall be persistent. Signed-off-by: Olivier Danet oda...@caramail.com --- hw/timer/slavio_timer.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/hw/timer/slavio_timer.c b/hw/timer/slavio_timer.c index f75b914

[Qemu-devel] [PATCH 0/1] Sun4m : TCX framebuffer hardware acceleration

2014-02-16 Thread Olivier Danet
This patch adds hardware acceleration to QEMU's existing TCX emulation. Some features (the hardware cursor particularly) depends on properties set by OpenBIOS. Here is, for testing, the corresponding OpenBIOS TCX forth driver. These modifications are not yet comitted into OpenBIOS trunk.

[Qemu-devel] [PATCH 1/1] Sun4m : TCX framebuffer hardware acceleration

2014-02-16 Thread Olivier Danet
8bits and 24bits modes. It is based on the NetBSD driver sources and from tests with Solaris. Signed-off-by: Olivier Danet oda...@caramail.com --- hw/display/tcx.c | 679 +-- hw/sparc/sun4m.c | 46 ++-- 2 files changed, 589 insertions(+), 136

[Qemu-devel] [PATCH] sparc: Set HostID in NVRAM

2013-12-29 Thread Olivier Danet
On SparcStations, the HostID field in the NVRAM is equal to the last three bytes of the MAC address (which is also stored in the NVRAM). This constant is used as an identification/serial number on Solaris. signed-off-by : Olivier Danet oda...@caramail.com --- include/hw/nvram

Re: [Qemu-devel] Openbios upgrade broke sparc32 linux.

2013-07-04 Thread Olivier Danet
On 29/06/2013 22:29, Olivier Danet wrote: On 28/06/2013 23:44, Mark Cave-Ayland wrote: On 28/06/13 03:08, Rob Landley wrote: Commit 467b34689d27 upgraded the openbios image, and ever since my linux system images hang about the time they try to initialize interrupts. http://landley.net

Re: [Qemu-devel] Openbios upgrade broke sparc32 linux.

2013-06-29 Thread Olivier Danet
a SparcStation-4 or SparcStation-5. Signed-off-by: Olivier DANET oda...@caramail.com Signed-off-by: Blue Swirl blauwir...@gmail.com The commit itself is very simple and looks like this: http://git.qemu.org/?p=openbios.git;a=commitdiff;h=0fe772df8717ef75d91eae8ef221e9966ce2fd7f. My

[Qemu-devel] [PATCH] ESP : Fix status register update

2011-01-27 Thread Olivier DANET
The Count to zero flag (STAT_TC) must not be cleared after an Interrupt Status register read. Signed-off-by: Olivier Danet oda...@caramail.com --- hw/esp.c     2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index fa9d2a2..90bfdc6 100644 --- a/hw/esp.c

[Qemu-devel] [PATCH] Sun4m / Sun4u : Uppercase RAM_size

2011-01-27 Thread Olivier DANET
Signed-off-by: Olivier Danet oda...@caramail.com ---  hw/sun4m.c     6 +++---  hw/sun4u.c     4 ++--  2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/sun4m.c b/hw/sun4m.c index 30e8a21..8076f25 100644 --- a/hw/sun4m.c +++ b/hw/sun4m.c @@ -962,7 +962,7 @@ static void