[Qemu-devel] [PATCHv2] hw/net: implement MIB counters in mcf_fec driver

2017-03-12 Thread Greg Ungerer
during its initialization (which it never did before), and so this version of Linux will now fail with the QEMU error: qemu: hardware error: mcf_fec_read: Bad address 0x200 This MIB counter support fixes this problem. Signed-off-by: Greg Ungerer Reviewed-by: Laurent Vivier --- hw/net/mcf_f

[Qemu-devel] [PATCH] hw/net: implement MIB counters in mcf_fec driver

2017-02-03 Thread Greg Ungerer
during its initialization (which it never did before), and so this version of Linux will now fail with the QEMU error: qemu: hardware error: mcf_fec_read: Bad address 0x200 This MIB counter support fixes this problem. Signed-off-by: Greg Ungerer --- hw/net/mcf_f

[Qemu-devel] [PATCHv2] hw/net: implement MIB counters in mcf_fec driver

2017-01-11 Thread Greg Ungerer
during its initialization (which it never did before), and so this version of Linux will now fail with the QEMU error: qemu: hardware error: mcf_fec_read: Bad address 0x200 This MIB counter support fixes this problem. Signed-off-by: Greg Ungerer --- v2: fixed formatting problems picked up by

[Qemu-devel] [PATCH] hw/net: implement MIB counters in mcf_fec driver

2017-01-10 Thread Greg Ungerer
during its initialization (which it never did before), and so this version of Linux will now fail with the QEMU error: qemu: hardware error: mcf_fec_read: Bad address 0x200 This MIB counter support fixes this problem. Singed-off-by: Greg Ungerer --- hw/net/mcf_f

Re: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb

2016-09-29 Thread Greg Ungerer
Hi Thomas, On 29/09/16 17:56, Thomas Huth wrote: On 29.09.2016 09:50, Laurent Vivier wrote: Le 28/09/2016 à 02:06, Greg Ungerer a écrit : The shipping default setting for the Freescale M5208EVB board is to run the CPU at 166.67MHz. The current qemu emulation code for this board is

Re: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb

2016-09-29 Thread Greg Ungerer
Hi Laurent, On 29/09/16 17:50, Laurent Vivier wrote: Le 28/09/2016 à 02:06, Greg Ungerer a écrit : The shipping default setting for the Freescale M5208EVB board is to run the CPU at 166.67MHz. The current qemu emulation code for this board is defaulting to 66MHz. This results in time appearing

Re: [Qemu-devel] [PATCH] m68k: change default system clock for m5208evb

2016-09-27 Thread Greg Ungerer
On 28/09/16 10:22, Peter Maydell wrote: > On 27 September 2016 at 16:49, Greg Ungerer wrote: >> On 27/09/16 23:27, Laurent Vivier wrote: >>> It is better because 166.67 MHZ is clearly a rounded value computed from >>> the period: 10/600 = 166.66

[Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb

2016-09-27 Thread Greg Ungerer
seconds in real time to actually complete. Change the hard coded default to match the default hardware setting. Signed-off-by: Greg Ungerer --- hw/m68k/mcf5208.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2: more accurately set frequency (1 instead of 16600) diff --git

Re: [Qemu-devel] [PATCH] m68k: change default system clock for m5208evb

2016-09-27 Thread Greg Ungerer
On 27/09/16 23:27, Laurent Vivier wrote: > Le 27/09/2016 à 15:22, Greg Ungerer a écrit : >> Hi Laurent, >> >> On 27/09/16 18:11, Laurent Vivier wrote: >>> Le 27/09/2016 à 09:33, Thomas Huth a écrit : >>>> On 27.09.2016 03:29, Greg Ungerer wrote: >>&g

Re: [Qemu-devel] [PATCH] m68k: change default system clock for m5208evb

2016-09-27 Thread Greg Ungerer
Hi Thomas, On 27/09/16 17:33, Thomas Huth wrote: On 27.09.2016 03:29, Greg Ungerer wrote: The shipping default setting for the Freescale M5208EVB board is to run the CPU at 166MHz. The current qemu emulation code for this board is defaulting to 66MHz. This results in time appearing to run way

Re: [Qemu-devel] [PATCH] m68k: change default system clock for m5208evb

2016-09-27 Thread Greg Ungerer
Hi Laurent, On 27/09/16 18:11, Laurent Vivier wrote: Le 27/09/2016 à 09:33, Thomas Huth a écrit : On 27.09.2016 03:29, Greg Ungerer wrote: The shipping default setting for the Freescale M5208EVB board is to run the CPU at 166MHz. The current qemu emulation code for this board is defaulting to

[Qemu-devel] [PATCH] m68k: change default system clock for m5208evb

2016-09-26 Thread Greg Ungerer
ds in real time to actually complete. Change the hard coded default to match the default hardware setting. Signed-off-by: Greg Ungerer --- hw/m68k/mcf5208.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c index 9240ebf..2d0b464 100644 ---

Re: [Qemu-devel] [PATCH 05/19] m68k: Remove ELF_MACHINE from cpu.h

2015-08-16 Thread Greg Ungerer
s EM_68K directly, as that > is architecture specific code. > > This removes another architecture specific definition from the global > namespace. > > Cc: Laurent Vivier > Cc: Greg Ungerer Reviewed-by: Greg Ungerer > Signed-off-by: Peter Crosthwaite > --- >

[Qemu-devel] [PATCH] hw/net: handle flow control in mcf_fec driver receiver

2015-07-27 Thread Greg Ungerer
through its descriptors we signal the qemu net layer to send more packets. Signed-off-by: Greg Ungerer --- hw/net/mcf_fec.c | 45 ++--- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/hw/net/mcf_fec.c b/hw/net/mcf_fec.c index e63af1b

Re: [Qemu-devel] [PATCH 0/4] hw/net: fix m68/ColdFire ethernet fec support

2015-07-27 Thread Greg Ungerer
Hi Stefan, On 27/07/15 23:11, Stefan Hajnoczi wrote: > On Tue, Jun 30, 2015 at 03:38:11PM +1000, Greg Ungerer wrote: >> Hi Stefan, >> >> On 26/06/15 20:12, Stefan Hajnoczi wrote: >>> On Fri, Jun 26, 2015 at 03:27:12PM +1000, g...@uclinux.org wrote: >>>> &

Re: [Qemu-devel] [PATCH 3/8] disas: m68k: QOMify target specific disas setup

2015-07-12 Thread Greg Ungerer
On 12/07/15 12:00, Peter Crosthwaite wrote: > From: Peter Crosthwaite > > Move the target_disas() m68k specifics to the QOM disas_set_info hook > and delete the #ifdef specific code in disas.c. > > Cc: Greg Ungerer I see no problems. Reviewed-by: Greg Ungerer &g

Re: [Qemu-devel] [PATCH 0/4] hw/net: fix m68/ColdFire ethernet fec support

2015-06-29 Thread Greg Ungerer
Hi Stefan, On 26/06/15 20:12, Stefan Hajnoczi wrote: > On Fri, Jun 26, 2015 at 03:27:12PM +1000, g...@uclinux.org wrote: >> >> The following set of patches fixes the emulated ColdFire ethernet fec >> driver. There is primarily two problems that need to be fixed. >> >> 1. The emulated driver needs

Re: [Qemu-devel] [PATCH 0/4] hw/net: fix m68/ColdFire ethernet fec support

2015-06-26 Thread Greg Ungerer
Hi Stefan, On 26/06/15 20:12, Stefan Hajnoczi wrote: On Fri, Jun 26, 2015 at 03:27:12PM +1000, g...@uclinux.org wrote: The following set of patches fixes the emulated ColdFire ethernet fec driver. There is primarily two problems that need to be fixed. 1. The emulated driver needs to support pr

Re: [Qemu-devel] [PATCH v2 0/3] m68k: fix ColdFire support

2015-06-22 Thread Greg Ungerer
Hi Andreas, On 23/06/15 02:49, Andreas Färber wrote: > Am 20.06.2015 um 06:55 schrieb Greg Ungerer: >> I have one more fix still to come for the qemu mcf_fec.c net driver. >> It currently doesn't support the mdio actions or any attached phy and >> this will cause th

Re: [Qemu-devel] [PATCH 0/2] m68k: 680x0 processors family support

2015-06-22 Thread Greg Ungerer
Hi Laurent, On 22/06/15 08:35, Laurent Vivier wrote: I carry this series for several years now. I was reluctant to merge it with the mainstream because I was sure it was breaking Coldfire support. But with the kernel provided by Greg Ungerer I was able to check and correct the support of

Re: [Qemu-devel] [PATCH v2 3/3] m68k: fix usp processing on interrupt entry and exception exit

2015-06-21 Thread Greg Ungerer
Hi Laurent, On 20/06/15 05:35, Laurent Vivier wrote: > Le 19/06/2015 15:43, g...@uclinux.org a écrit : >> From: Greg Ungerer >> >> The action to potentially switch sp register is not occurring at the correct >> point in the interrupt entry or exception exit sequenc

Re: [Qemu-devel] [PATCH v2 0/3] m68k: fix ColdFire support

2015-06-19 Thread Greg Ungerer
Hi Laurent, On 20/06/15 05:39, Laurent Vivier wrote: Le 19/06/2015 15:43, g...@uclinux.org a écrit : Some small issues are causing problems with running modern versions of Linux on the m68k/ColdFire 5208 target. These 3 patches fix those problems. They are all due to use of more advanced arch

Re: [Qemu-devel] m68k orphaned?

2015-06-19 Thread Greg Ungerer
Hi Peter, On 19/06/15 17:12, Peter Maydell wrote: > On 19 June 2015 at 06:00, Greg Ungerer wrote: >> Hi All, >> >> I see in the MAINTAINERS file that pretty much everything related >> to the m68k architecture is listed as "Orphan". >> >> I ha

Re: [Qemu-devel] m68k orphaned?

2015-06-19 Thread Greg Ungerer
Hi Peter, On 19/06/15 15:53, Peter Crosthwaite wrote: > On Thu, Jun 18, 2015 at 10:00 PM, Greg Ungerer wrote: >> Hi All, >> >> I see in the MAINTAINERS file that pretty much everything related >> to the m68k architecture is listed as "Orphan". >> >&

Re: [Qemu-devel] [PATCH 3/3] m68k: fix usp processing on interrupt entry and exception exit

2015-06-18 Thread Greg Ungerer
Hi Peter, On 19/06/15 15:49, Peter Crosthwaite wrote: > On Mon, Aug 18, 2014 at 10:37 PM, wrote: >> From: Greg Ungerer >> >> The action to potentially switch sp register is not occurring at the correct >> point in the interrupt entry or exception exit sequences. &g

Re: [Qemu-devel] [PATCH 1/3] m68k: implmenent more ColdFire 5208 interrupt controller functionality

2015-06-18 Thread Greg Ungerer
Hi Peter, On 19/06/15 15:24, Peter Crosthwaite wrote: > On Mon, Aug 18, 2014 at 10:37 PM, wrote: >> From: Greg Ungerer >> >> Implement the SIMR and CIMR registers of the 5208 interrupt controller. >> These are used by modern versions of Linux running on ColdFir

[Qemu-devel] m68k orphaned?

2015-06-18 Thread Greg Ungerer
Hi All, I see in the MAINTAINERS file that pretty much everything related to the m68k architecture is listed as "Orphan". I have some patches that have been around for quite a while (posted here twice) to fix some issues with the ColdFire support. [See https://lists.nongnu.org/archive/html/qemu-d

Re: [Qemu-devel] [PATCH] m68k: implement move to/from usp register instruction

2012-09-13 Thread Greg Ungerer
reg = AREG(insn, 0); +gen_helper_move_to_usp(cpu_env, reg); tcg_gen_st_i32(AREG(insn, 0), offsetof(CPUM68KState, sp[M68K_USP])); That looks cleaner, thanks. I'll send a revised patch. Regards Greg ---- Greg Ungerer -- Principal Eng