All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes
@ 2020-06-10 22:08 Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 01/11] MAINTAINERS: Mark SH4 section orphan Philippe Mathieu-Daudé
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Hi,

This series clarifies the situation of the SH4 TCG target
and peripherals.

Since v2:
- Keep Magnus as maintainer:
  https://www.mail-archive.com/qemu-devel@nongnu.org/msg710320.html
Addressed Aleksandar review comments:
- Split the MAINTAINER patch in various atomic units
  https://www.mail-archive.com/qemu-devel@nongnu.org/msg710947.html
- Add Yoshinori Sato as maintainer of SH4/RX peripherals
  https://www.mail-archive.com/qemu-devel@nongnu.org/msg711008.html

Aleksandar, I hope this is now fine for you and you can Ack the
changes. If this is still not perfect enough, I suggest you send
the perfect patches directly, because I can't spend more time on this.

Maybe patches 7 & 8 can go via acceptance-next queue, and
the rest via qemu-trivial@?

Regards,

Phil.

CI report:
https://travis-ci.org/github/philmd/qemu/builds/692828388

Supersedes: <20200608090142.6793-1-f4bug@amsat.org>

Philippe Mathieu-Daudé (9):
  MAINTAINERS: Mark SH4 section orphan
  MAINTAINERS: Mark SH4 based Shix machine orphan
  MAINTAINERS: Demote SH4 based R2D machine to 'Odd Fixes'
  MAINTAINERS: Cover 'hw/sh4/sh_intc.h' with the R2D machine
  MAINTAINERS: Add an entry for common Renesas peripherals
  MAINTAINERS: Add Yoshinori Sato as maintainer of Renesas peripherals
  hw/sh4: Use MemoryRegion typedef
  hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h'
  hw/timer/sh_timer: Remove unused 'qemu/timer.h' include

Thomas Huth (2):
  tests/acceptance: Add boot tests for sh4 QEMU advent calendar image
  .travis.yml: Test SH4 QEMU advent calendar image

 include/hw/sh4/sh.h                    | 12 +-----------
 include/hw/timer/tmu012.h              | 23 +++++++++++++++++++++++
 hw/sh4/sh7750.c                        |  1 +
 hw/timer/sh_timer.c                    |  3 ++-
 .travis.yml                            |  2 +-
 MAINTAINERS                            | 16 ++++++++++------
 tests/acceptance/boot_linux_console.py | 13 +++++++++++--
 7 files changed, 49 insertions(+), 21 deletions(-)
 create mode 100644 include/hw/timer/tmu012.h

-- 
2.21.3



^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v3 01/11] MAINTAINERS: Mark SH4 section orphan
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:36   ` Aleksandar Markovic
  2020-06-10 22:08 ` [PATCH v3 02/11] MAINTAINERS: Mark SH4 based Shix machine orphan Philippe Mathieu-Daudé
                   ` (9 subsequent siblings)
  10 siblings, 1 reply; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé,
	Aurelien Jarno

Aurelien Jarno expressed his desire to orphan the SH4 section [*]:

  I don't mind being [...] removed from there.
  I do not really have time to work on that.

Mark the SH4 section orphan.

Many thanks to Aurelien for his substantial contributions to QEMU,
and for maintaining the SH4 emulation for various years!

[*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html

Message-Id: <20200601214125.GA1924990@aurel32.net>
Acked-by: Aurelien Jarno <aurelien@aurel32.net>
Suggested-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 3abe3faa4e..129517cfb4 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -296,8 +296,7 @@ F: tests/tcg/s390x/
 L: qemu-s390x@nongnu.org
 
 SH4 TCG CPUs
-M: Aurelien Jarno <aurelien@aurel32.net>
-S: Odd Fixes
+S: Orphan
 F: target/sh4/
 F: hw/sh4/
 F: disas/sh4.c
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 02/11] MAINTAINERS: Mark SH4 based Shix machine orphan
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 01/11] MAINTAINERS: Mark SH4 section orphan Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 03/11] MAINTAINERS: Demote SH4 based R2D machine to 'Odd Fixes' Philippe Mathieu-Daudé
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Magnus Damm doesn't have time to keep maintaining the Shix
machine [*]. Mark it orphan, so volunteers can step in to
maintain it.

    Orphan:      No current maintainer [but maybe you could
                 take the role as you write your new code].

Many thanks to Magnus for introducing this SH4 machine!

[*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg710319.html

Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 129517cfb4..e1d1b0f62d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1257,8 +1257,7 @@ F: hw/intc/sh_intc.c
 F: hw/timer/sh_timer.c
 
 Shix
-M: Magnus Damm <magnus.damm@gmail.com>
-S: Odd Fixes
+S: Orphan
 F: hw/sh4/shix.c
 
 SPARC Machines
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 03/11] MAINTAINERS: Demote SH4 based R2D machine to 'Odd Fixes'
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 01/11] MAINTAINERS: Mark SH4 section orphan Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 02/11] MAINTAINERS: Mark SH4 based Shix machine orphan Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 04/11] MAINTAINERS: Cover 'hw/sh4/sh_intc.h' with the R2D machine Philippe Mathieu-Daudé
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Magnus Damm doesn't have much time to maintain the R2D machine,
but want to keep it [*]. Demote its status to 'Odd Fixes' so
contributors won't expect Magnus to take the patches:

    Odd Fixes:   It has a maintainer but they don't have time to do
                 much other than throw the odd patch in. See below.

[*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg710319.html

Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index e1d1b0f62d..e4e27acd26 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1251,7 +1251,7 @@ SH4 Machines
 ------------
 R2D
 M: Magnus Damm <magnus.damm@gmail.com>
-S: Maintained
+S: Odd Fixes
 F: hw/sh4/r2d.c
 F: hw/intc/sh_intc.c
 F: hw/timer/sh_timer.c
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 04/11] MAINTAINERS: Cover 'hw/sh4/sh_intc.h' with the R2D machine
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2020-06-10 22:08 ` [PATCH v3 03/11] MAINTAINERS: Demote SH4 based R2D machine to 'Odd Fixes' Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 05/11] MAINTAINERS: Add an entry for common Renesas peripherals Philippe Mathieu-Daudé
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Commit 81527b94ad added hw/intc/sh_intc.c, complete by
adding its corresponding header.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index e4e27acd26..653fca1da8 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1255,6 +1255,7 @@ S: Odd Fixes
 F: hw/sh4/r2d.c
 F: hw/intc/sh_intc.c
 F: hw/timer/sh_timer.c
+F: include/hw/sh4/sh_intc.h
 
 Shix
 S: Orphan
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 05/11] MAINTAINERS: Add an entry for common Renesas peripherals
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (3 preceding siblings ...)
  2020-06-10 22:08 ` [PATCH v3 04/11] MAINTAINERS: Cover 'hw/sh4/sh_intc.h' with the R2D machine Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-11  7:38   ` Thomas Huth
  2020-06-10 22:08 ` [PATCH v3 06/11] MAINTAINERS: Add Yoshinori Sato as maintainer of " Philippe Mathieu-Daudé
                   ` (5 subsequent siblings)
  10 siblings, 1 reply; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Renesas peripherals are common to SH4/RX based MCUs. Their
datasheets share common sections. It makes sense to maintain
them altogether. The current names are misleading (see the
'sh' prefix). This will be fixed later when RX peripherals
will be added.

Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 653fca1da8..0398634179 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1254,8 +1254,6 @@ M: Magnus Damm <magnus.damm@gmail.com>
 S: Odd Fixes
 F: hw/sh4/r2d.c
 F: hw/intc/sh_intc.c
-F: hw/timer/sh_timer.c
-F: include/hw/sh4/sh_intc.h
 
 Shix
 S: Orphan
@@ -1954,6 +1952,13 @@ F: hw/*/*xive*
 F: include/hw/*/*xive*
 F: docs/*/*xive*
 
+Renesas peripherals
+M: Magnus Damm <magnus.damm@gmail.com>
+S: Odd Fixes
+F: hw/char/sh_serial.c
+F: hw/timer/sh_timer.c
+F: include/hw/sh4/sh.h
+
 Subsystems
 ----------
 Audio
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 06/11] MAINTAINERS: Add Yoshinori Sato as maintainer of Renesas peripherals
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (4 preceding siblings ...)
  2020-06-10 22:08 ` [PATCH v3 05/11] MAINTAINERS: Add an entry for common Renesas peripherals Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 07/11] hw/sh4: Use MemoryRegion typedef Philippe Mathieu-Daudé
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Renesas peripherals are common to SH4/RX based MCUs. Their
datasheets share common sections. It makes sense to maintain
them altogether.

Yoshinori Sato volonteered to maintain them [*].

[*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg710928.html

Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Suggested-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 0398634179..967ca378fb 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1953,8 +1953,8 @@ F: include/hw/*/*xive*
 F: docs/*/*xive*
 
 Renesas peripherals
-M: Magnus Damm <magnus.damm@gmail.com>
-S: Odd Fixes
+M: Yoshinori Sato <ysato@users.sourceforge.jp>
+S: Maintained
 F: hw/char/sh_serial.c
 F: hw/timer/sh_timer.c
 F: include/hw/sh4/sh.h
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 07/11] hw/sh4: Use MemoryRegion typedef
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (5 preceding siblings ...)
  2020-06-10 22:08 ` [PATCH v3 06/11] MAINTAINERS: Add Yoshinori Sato as maintainer of " Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 08/11] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' Philippe Mathieu-Daudé
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Richard Henderson,
	Philippe Mathieu-Daudé

Use the MemoryRegion type defined in "qemu/typedefs.h",
to keep the repository style consistent.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 include/hw/sh4/sh.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/hw/sh4/sh.h b/include/hw/sh4/sh.h
index 767a2df7e2..fe773cb01d 100644
--- a/include/hw/sh4/sh.h
+++ b/include/hw/sh4/sh.h
@@ -10,9 +10,8 @@
 
 /* sh7750.c */
 struct SH7750State;
-struct MemoryRegion;
 
-struct SH7750State *sh7750_init(SuperHCPU *cpu, struct MemoryRegion *sysmem);
+struct SH7750State *sh7750_init(SuperHCPU *cpu, MemoryRegion *sysmem);
 
 typedef struct {
     /* The callback will be triggered if any of the designated lines change */
@@ -32,7 +31,7 @@ int sh7750_register_io_device(struct SH7750State *s,
 #define TMU012_FEAT_TOCR   (1 << 0)
 #define TMU012_FEAT_3CHAN  (1 << 1)
 #define TMU012_FEAT_EXTCLK (1 << 2)
-void tmu012_init(struct MemoryRegion *sysmem, hwaddr base,
+void tmu012_init(MemoryRegion *sysmem, hwaddr base,
                  int feat, uint32_t freq,
 		 qemu_irq ch0_irq, qemu_irq ch1_irq,
 		 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 08/11] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h'
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (6 preceding siblings ...)
  2020-06-10 22:08 ` [PATCH v3 07/11] hw/sh4: Use MemoryRegion typedef Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 09/11] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Richard Henderson,
	Philippe Mathieu-Daudé

Extract timer definitions to 'hw/timer/tmu012.h'.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 include/hw/sh4/sh.h       |  9 ---------
 include/hw/timer/tmu012.h | 23 +++++++++++++++++++++++
 hw/sh4/sh7750.c           |  1 +
 hw/timer/sh_timer.c       |  2 ++
 4 files changed, 26 insertions(+), 9 deletions(-)
 create mode 100644 include/hw/timer/tmu012.h

diff --git a/include/hw/sh4/sh.h b/include/hw/sh4/sh.h
index fe773cb01d..93f464bf4c 100644
--- a/include/hw/sh4/sh.h
+++ b/include/hw/sh4/sh.h
@@ -27,15 +27,6 @@ typedef struct {
 
 int sh7750_register_io_device(struct SH7750State *s,
 			      sh7750_io_device * device);
-/* sh_timer.c */
-#define TMU012_FEAT_TOCR   (1 << 0)
-#define TMU012_FEAT_3CHAN  (1 << 1)
-#define TMU012_FEAT_EXTCLK (1 << 2)
-void tmu012_init(MemoryRegion *sysmem, hwaddr base,
-                 int feat, uint32_t freq,
-		 qemu_irq ch0_irq, qemu_irq ch1_irq,
-		 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
-
 
 /* sh_serial.c */
 #define SH_SERIAL_FEAT_SCIF (1 << 0)
diff --git a/include/hw/timer/tmu012.h b/include/hw/timer/tmu012.h
new file mode 100644
index 0000000000..808ed8de1d
--- /dev/null
+++ b/include/hw/timer/tmu012.h
@@ -0,0 +1,23 @@
+/*
+ * SuperH Timer
+ *
+ * Copyright (c) 2007 Magnus Damm
+ *
+ * This code is licensed under the GPL.
+ */
+
+#ifndef HW_TIMER_TMU012_H
+#define HW_TIMER_TMU012_H
+
+#include "exec/hwaddr.h"
+
+#define TMU012_FEAT_TOCR   (1 << 0)
+#define TMU012_FEAT_3CHAN  (1 << 1)
+#define TMU012_FEAT_EXTCLK (1 << 2)
+
+void tmu012_init(MemoryRegion *sysmem, hwaddr base,
+                 int feat, uint32_t freq,
+                 qemu_irq ch0_irq, qemu_irq ch1_irq,
+                 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
+
+#endif
diff --git a/hw/sh4/sh7750.c b/hw/sh4/sh7750.c
index d660714443..f8ac3ec6e3 100644
--- a/hw/sh4/sh7750.c
+++ b/hw/sh4/sh7750.c
@@ -30,6 +30,7 @@
 #include "sh7750_regs.h"
 #include "sh7750_regnames.h"
 #include "hw/sh4/sh_intc.h"
+#include "hw/timer/tmu012.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
 
diff --git a/hw/timer/sh_timer.c b/hw/timer/sh_timer.c
index 13c4051808..b9cbacf5d0 100644
--- a/hw/timer/sh_timer.c
+++ b/hw/timer/sh_timer.c
@@ -9,10 +9,12 @@
  */
 
 #include "qemu/osdep.h"
+#include "exec/memory.h"
 #include "hw/hw.h"
 #include "hw/irq.h"
 #include "hw/sh4/sh.h"
 #include "qemu/timer.h"
+#include "hw/timer/tmu012.h"
 #include "hw/ptimer.h"
 
 //#define DEBUG_TIMER
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 09/11] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (7 preceding siblings ...)
  2020-06-10 22:08 ` [PATCH v3 08/11] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 10/11] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 11/11] .travis.yml: Test SH4 " Philippe Mathieu-Daudé
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Richard Henderson,
	Philippe Mathieu-Daudé

Remove unused "qemu/timer.h" include.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 hw/timer/sh_timer.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/timer/sh_timer.c b/hw/timer/sh_timer.c
index b9cbacf5d0..bb0e1c8ee5 100644
--- a/hw/timer/sh_timer.c
+++ b/hw/timer/sh_timer.c
@@ -13,7 +13,6 @@
 #include "hw/hw.h"
 #include "hw/irq.h"
 #include "hw/sh4/sh.h"
-#include "qemu/timer.h"
 #include "hw/timer/tmu012.h"
 #include "hw/ptimer.h"
 
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 10/11] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (8 preceding siblings ...)
  2020-06-10 22:08 ` [PATCH v3 09/11] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  2020-06-10 22:08 ` [PATCH v3 11/11] .travis.yml: Test SH4 " Philippe Mathieu-Daudé
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

From: Thomas Huth <thuth@redhat.com>

Now that we can select the second serial console in the acceptance tests
(see commit 746f244d9720 "Allow to use other serial consoles than default"),
we can also test the sh4 image from the QEMU advent calendar 2018.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200515164337.4899-1-thuth@redhat.com>
[PMD: Split .travis.yml change in separate patch]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 tests/acceptance/boot_linux_console.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
index 3f3aa0c854..3d02519660 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -858,12 +858,12 @@ def test_m68k_q800(self):
         console_pattern = 'No filesystem could mount root'
         self.wait_for_console_pattern(console_pattern)
 
-    def do_test_advcal_2018(self, day, tar_hash, kernel_name):
+    def do_test_advcal_2018(self, day, tar_hash, kernel_name, console=0):
         tar_url = ('https://www.qemu-advent-calendar.org'
                    '/2018/download/day' + day + '.tar.xz')
         file_path = self.fetch_asset(tar_url, asset_hash=tar_hash)
         archive.extract(file_path, self.workdir)
-        self.vm.set_console()
+        self.vm.set_console(console_index=console)
         self.vm.add_args('-kernel',
                          self.workdir + '/day' + day + '/' + kernel_name)
         self.vm.launch()
@@ -937,6 +937,15 @@ def test_ppc_mac99(self):
         self.vm.add_args('-M', 'graphics=off')
         self.do_test_advcal_2018('15', tar_hash, 'invaders.elf')
 
+    def test_sh4_r2d(self):
+        """
+        :avocado: tags=arch:sh4
+        :avocado: tags=machine:r2d
+        """
+        tar_hash = 'fe06a4fd8ccbf2e27928d64472939d47829d4c7e'
+        self.vm.add_args('-append', 'console=ttySC1')
+        self.do_test_advcal_2018('09', tar_hash, 'zImage', console=1)
+
     def test_sparc_ss20(self):
         """
         :avocado: tags=arch:sparc
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v3 11/11] .travis.yml: Test SH4 QEMU advent calendar image
  2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (9 preceding siblings ...)
  2020-06-10 22:08 ` [PATCH v3 10/11] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image Philippe Mathieu-Daudé
@ 2020-06-10 22:08 ` Philippe Mathieu-Daudé
  10 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 22:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, Laurent Vivier,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

From: Thomas Huth <thuth@redhat.com>

Now that we can select the second serial console in the acceptance tests
(see commit 746f244d9720 "Allow to use other serial consoles than default"),
we can also test the sh4 image from the QEMU advent calendar 2018.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200515164337.4899-1-thuth@redhat.com>
[PMD: Split tests/acceptance/boot_linux_console.py in previous commit]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 564be50a3c..e2003565d8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -293,7 +293,7 @@ jobs:
     - name: "GCC check-acceptance"
       dist: bionic
       env:
-        - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu"
+        - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu"
         - TEST_CMD="make check-acceptance"
         - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance"
       after_script:
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH v3 01/11] MAINTAINERS: Mark SH4 section orphan
  2020-06-10 22:08 ` [PATCH v3 01/11] MAINTAINERS: Mark SH4 section orphan Philippe Mathieu-Daudé
@ 2020-06-10 22:36   ` Aleksandar Markovic
  0 siblings, 0 replies; 15+ messages in thread
From: Aleksandar Markovic @ 2020-06-10 22:36 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Alex Bennée, Michael Tokarev, QEMU Developers,
	Laurent Vivier, Philippe Mathieu-Daudé,
	Aurelien Jarno

[-- Attachment #1: Type: text/plain, Size: 1810 bytes --]

чет, 11. јун 2020. у 00:08 Philippe Mathieu-Daudé <f4bug@amsat.org> је
написао/ла:
>
> Aurelien Jarno expressed his desire to orphan the SH4 section [*]:
>
>   I don't mind being [...] removed from there.
>   I do not really have time to work on that.
>
> Mark the SH4 section orphan.
>
> Many thanks to Aurelien for his substantial contributions to QEMU,
> and for maintaining the SH4 emulation for various years!
>
> [*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html
>
> Message-Id: <20200601214125.GA1924990@aurel32.net>
> Acked-by: Aurelien Jarno <aurelien@aurel32.net>
> Suggested-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---

I am sorry if I hurt anybody's feelings with my choice of words, or in
other ways.

As requested by Philippe, I wrote the patch that represent a comprehensive
summary of all needed changes related to sh4 maintainership, that is, I
believe,
simple, effective and productive in both short and long term.

https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg03080.html

The patch I wrote supersedes patches 1-2 from v2 of this series, and also
patches
1-6 from v3 (this one) of this series.

Please let me know if you have any objection to such patch.

Sincerely,
Aleksandar


>  MAINTAINERS | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 3abe3faa4e..129517cfb4 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -296,8 +296,7 @@ F: tests/tcg/s390x/
>  L: qemu-s390x@nongnu.org
>
>  SH4 TCG CPUs
> -M: Aurelien Jarno <aurelien@aurel32.net>
> -S: Odd Fixes
> +S: Orphan
>  F: target/sh4/
>  F: hw/sh4/
>  F: disas/sh4.c
> --
> 2.21.3
>

[-- Attachment #2: Type: text/html, Size: 2704 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v3 05/11] MAINTAINERS: Add an entry for common Renesas peripherals
  2020-06-10 22:08 ` [PATCH v3 05/11] MAINTAINERS: Add an entry for common Renesas peripherals Philippe Mathieu-Daudé
@ 2020-06-11  7:38   ` Thomas Huth
  2020-06-11  7:45     ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Huth @ 2020-06-11  7:38 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: Fam Zheng, Magnus Damm, Yoshinori Sato, qemu-trivial,
	Alex Bennée, Michael Tokarev, Laurent Vivier,
	Aleksandar Markovic, Philippe Mathieu-Daudé

On 11/06/2020 00.08, Philippe Mathieu-Daudé wrote:
> Renesas peripherals are common to SH4/RX based MCUs. Their
> datasheets share common sections. It makes sense to maintain
> them altogether. The current names are misleading (see the
> 'sh' prefix). This will be fixed later when RX peripherals
> will be added.
> 
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  MAINTAINERS | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 653fca1da8..0398634179 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -1254,8 +1254,6 @@ M: Magnus Damm <magnus.damm@gmail.com>
>  S: Odd Fixes
>  F: hw/sh4/r2d.c
>  F: hw/intc/sh_intc.c
> -F: hw/timer/sh_timer.c
> -F: include/hw/sh4/sh_intc.h

You've added the line for sh_intc.h in the previous patch, just to
remove it here again? ... I guess you only wanted to remove sh_timer.c
here instead?

 Thomas

>  Shix
>  S: Orphan
> @@ -1954,6 +1952,13 @@ F: hw/*/*xive*
>  F: include/hw/*/*xive*
>  F: docs/*/*xive*
>  
> +Renesas peripherals
> +M: Magnus Damm <magnus.damm@gmail.com>
> +S: Odd Fixes
> +F: hw/char/sh_serial.c
> +F: hw/timer/sh_timer.c
> +F: include/hw/sh4/sh.h
> +
>  Subsystems
>  ----------
>  Audio
> 



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v3 05/11] MAINTAINERS: Add an entry for common Renesas peripherals
  2020-06-11  7:38   ` Thomas Huth
@ 2020-06-11  7:45     ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-11  7:45 UTC (permalink / raw)
  To: Thomas Huth, qemu-devel
  Cc: Fam Zheng, Magnus Damm, Yoshinori Sato, qemu-trivial,
	Alex Bennée, Michael Tokarev, Laurent Vivier,
	Aleksandar Markovic, Philippe Mathieu-Daudé

On 6/11/20 9:38 AM, Thomas Huth wrote:
> On 11/06/2020 00.08, Philippe Mathieu-Daudé wrote:
>> Renesas peripherals are common to SH4/RX based MCUs. Their
>> datasheets share common sections. It makes sense to maintain
>> them altogether. The current names are misleading (see the
>> 'sh' prefix). This will be fixed later when RX peripherals
>> will be added.
>>
>> Cc: Magnus Damm <magnus.damm@gmail.com>
>> Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>  MAINTAINERS | 9 +++++++--
>>  1 file changed, 7 insertions(+), 2 deletions(-)
>>
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index 653fca1da8..0398634179 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -1254,8 +1254,6 @@ M: Magnus Damm <magnus.damm@gmail.com>
>>  S: Odd Fixes
>>  F: hw/sh4/r2d.c
>>  F: hw/intc/sh_intc.c
>> -F: hw/timer/sh_timer.c
>> -F: include/hw/sh4/sh_intc.h
> 
> You've added the line for sh_intc.h in the previous patch, just to
> remove it here again? ... I guess you only wanted to remove sh_timer.c
> here instead?

Yes, you are right, too many rework trying to split in a way that
would satisfy Aleksander requirements, but he eventually implicitly
Nacked this series (not replying on the cover however, and not
answering my questions, so this is not clear neither...):
https://www.mail-archive.com/qemu-devel@nongnu.org/msg711260.html
Aleksander said Yoshinori will arrange the sections in his own
ways. While I'm not certain Yoshinori is interested/willing to do
the cleanup, I don't think any more reviewer should spend time
reviewing this. Thanks for caring anyway, very appreciated!

> 
>  Thomas
> 
>>  Shix
>>  S: Orphan
>> @@ -1954,6 +1952,13 @@ F: hw/*/*xive*
>>  F: include/hw/*/*xive*
>>  F: docs/*/*xive*
>>  
>> +Renesas peripherals
>> +M: Magnus Damm <magnus.damm@gmail.com>
>> +S: Odd Fixes
>> +F: hw/char/sh_serial.c
>> +F: hw/timer/sh_timer.c
>> +F: include/hw/sh4/sh.h
>> +
>>  Subsystems
>>  ----------
>>  Audio
>>
> 


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-06-11  7:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 22:08 [PATCH v3 00/11] sh4: Update MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 01/11] MAINTAINERS: Mark SH4 section orphan Philippe Mathieu-Daudé
2020-06-10 22:36   ` Aleksandar Markovic
2020-06-10 22:08 ` [PATCH v3 02/11] MAINTAINERS: Mark SH4 based Shix machine orphan Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 03/11] MAINTAINERS: Demote SH4 based R2D machine to 'Odd Fixes' Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 04/11] MAINTAINERS: Cover 'hw/sh4/sh_intc.h' with the R2D machine Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 05/11] MAINTAINERS: Add an entry for common Renesas peripherals Philippe Mathieu-Daudé
2020-06-11  7:38   ` Thomas Huth
2020-06-11  7:45     ` Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 06/11] MAINTAINERS: Add Yoshinori Sato as maintainer of " Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 07/11] hw/sh4: Use MemoryRegion typedef Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 08/11] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 09/11] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 10/11] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image Philippe Mathieu-Daudé
2020-06-10 22:08 ` [PATCH v3 11/11] .travis.yml: Test SH4 " Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.