New SH kernel use dtb.
This patch add dtb support for R2D board emulation.
Signed-off-by: Yoshinori Sato
---
hw/sh4/r2d.c | 52 +++-
1 file changed, 43 insertions(+), 9 deletions(-)
diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c
index f2547ed..203c117
se if (env->flags & DELAY_SLOT_CONDITIONAL) {
> -qemu_printf("in conditional delay slot (delayed_pc=0x%08x)\n",
> - env->delayed_pc);
> +qemu_fprintf(f, "in conditional delay slot (delayed_pc=0x%08x)\n",
> + env->delayed_pc);
> } else if (env->flags & DELAY_SLOT_RTE) {
> qemu_fprintf(f, "in rte delay slot (delayed_pc=0x%08x)\n",
> env->delayed_pc);
> --
> 2.35.3
>
Reviewd-by: Yoshinori Sato
--
Yosinori Sato
ion-related registers
> */
>
> /* Immediate data for TRAPA instruction - TRA */
> --
> γαῖα πυρί μιχθήτω
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
; +++ b/hw/rx/rx62n.c
> @@ -23,6 +23,7 @@
> #include "qemu/osdep.h"
> #include "qapi/error.h"
> #include "qemu/error-report.h"
> +#include "qemu/units.h"
> #include "hw/rx/rx62n.h"
> #include "hw/loader.h"
> #include "hw/sysbus.h"
> --
> 2.41.0
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
{
> - sysbus_connect_irq(sci, i, s->irq[irqbase + i]);
> +sysbus_connect_irq(sci, i,
> + qdev_get_gpio_in(DEVICE(&s->icu), irqbase + i));
> }
> sysbus_mmio_map(sci, 0, RX62N_SCI_BASE + unit * 0x08);
> }
> --
> 2.41.0
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
sysbus_mmio_map(busdev, 1, 0x1400080c);
> mmio_ide_init_drives(dev, dinfo, NULL);
> --
> 2.41.0
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
sas.com/us/en/document/mas/sh-4-software-manual
> This instruction performs signed multiplication of the 16-bit operands
> whose addresses are the contents of general registers Rm and Rn,
> adds the 32-bit result to the MAC register contents, and stores the
> result in the MAC register. Operands Rm and Rn are each incremented
> by 2 each time they are read.
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
* If there is no overflow, the result is already inside
> + * the saturation bounds.
> + *
> + * If there was no overflow, MACH is unchanged.
> + */
> +env->macl = result;
> }
> +} else {
> +/* In non-saturation arithmetic mode, the accumulator is 64-bit */
> +int64_t mac = (((uint64_t)env->mach) << 32) | env->macl;
> +
> +/* The carry bit of the 64-bit addition is discarded */
> +int64_t result = mac + (int64_t)mul;
> +env->macl = result;
> +env->mach = result >> 32;
> }
> }
>
> --
> 2.41.0
>
Reviewd-by: Yoshinori Sato
--
Yosinori Sato
On Fri, 05 Apr 2024 19:24:57 +0900,
Richard Henderson wrote:
>
> Cc: Yoshinori Sato
> Signed-off-by: Richard Henderson
> ---
> target/rx/translate.c | 27 ++-
> 1 file changed, 14 insertions(+), 13 deletions(-)
>
> diff --git a/target/rx
4 + B7_0 * 4) & ~3);
> return;
> --
> 2.41.0
>
That's what the documentation said.
> If a PC-relative load instruction is executed in a delay slot,
> an illegal slot instruction exception will be generated.
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
subv(INT_MAX, 1, INT_MAX - 1, 0);
> +subv(0, 1, -1, 0);
> +subv(-1, -1, 0, 0);
> +
> +return 0;
> +}
> diff --git a/tests/tcg/sh4/Makefile.target b/tests/tcg/sh4/Makefile.target
> index 521b8b0a76..7852fa62d8 100644
> --- a/tests/tcg/sh4/Makefile.target
> +++ b/tests/tcg/sh4/Makefile.target
> @@ -20,3 +20,6 @@ TESTS += test-macw
>
> test-addv: CFLAGS += -O -g
> TESTS += test-addv
> +
> +test-subv: CFLAGS += -O -g
> +TESTS += test-subv
> --
> 2.41.0
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
; +{
> +addv(INT_MAX, 1, INT_MIN, 1);
> +addv(INT_MAX - 1, 1, INT_MAX, 0);
> +
> +return 0;
> +}
> diff --git a/tests/tcg/sh4/Makefile.target b/tests/tcg/sh4/Makefile.target
> index 4d09291c0c..521b8b0a76 100644
> --- a/tests/tcg/sh4/Makefile.target
> +++ b/tests/tcg/sh4/Makefile.target
> @@ -17,3 +17,6 @@ TESTS += test-macl
>
> test-macw: CFLAGS += -O -g
> TESTS += test-macw
> +
> +test-addv: CFLAGS += -O -g
> +TESTS += test-addv
> --
> 2.41.0
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
tcg_gen_xor_i32(t2, Rm, Rn);
> tcg_gen_andc_i32(cpu_sr_t, t1, t2);
> tcg_gen_shri_i32(cpu_sr_t, cpu_sr_t, 31);
> -tcg_gen_mov_i32(REG(B11_8), t0);
> + tcg_gen_mov_i32(Rn, result);
> }
> return;
> case 0x2009: /* and Rm,Rn */
> --
> 2.41.0
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
, Rn, Rm);
> tcg_gen_and_i32(t1, t1, t2);
> tcg_gen_shri_i32(cpu_sr_t, t1, 31);
> -tcg_gen_mov_i32(REG(B11_8), t0);
> + tcg_gen_mov_i32(Rn, result);
> }
> return;
> case 0x2008: /* tst Rm,Rn */
> --
> 2.41.0
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
On Sat, 04 May 2024 17:25:52 +0900,
Michael Tokarev wrote:
>
> 06.04.2024 08:37, Richard Henderson wrote:
> > Zack's recent patches, tidied a little bit, and with
> > test cases added.
>
> These fixes ended up in stable-8.2, but not in stable-7.2.
> This is because in 7.2, the context is a bit di
@@ static void decode_gusa(DisasContext *ctx, CPUSH4State
> *env)
> */
> for (i = 1; i < max_insns; ++i) {
> tcg_gen_insn_start(pc + i * 2, ctx->envflags);
> +ctx->base.insn_start = tcg_last_op();
> }
> }
> #endif
> --
> 2.34.1
>
Reviewed-by: Yoshinori Sato
--
Yosinori Sato
Signed-off-by: Yoshinori Sato
---
target/rx/cpu-qom.h | 52
target/rx/cpu.h | 196 ++
target/rx/cpu.c | 222
3 files changed, 470 insertions(+)
create mode 100644 target/rx/cpu
renesas_tmr: 8bit timer modules.
renesas_cmt: 16bit compare match timer modules.
This part use many renesas's CPU.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/timer/renesas_cmt.h
Signed-off-by: Yoshinori Sato
---
configure | 8
default-configs/rx-softmmu.mak | 7 +++
include/sysemu/arch_init.h | 1 +
arch_init.c| 2 ++
hw/Kconfig | 1 +
5 files changed, 19 insertions(+)
create mode 100644
Signed-off-by: Yoshinori Sato
---
target/rx/gdbstub.c | 112
target/rx/monitor.c | 38
target/rx/Makefile.objs | 11 +
3 files changed, 161 insertions(+)
create mode 100644 target/rx/gdbstub.c
create mode 100644
Some RX peripheral using 8bit and 16bit registers.
Added 8bit and 16bit APIs.
Signed-off-by: Yoshinori Sato
---
include/hw/registerfields.h | 28 +++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/include/hw/registerfields.h b/include/hw/registerfields.h
-kernel zImage -dtb rx-qemu.dtb -append "earlycon"
Changes for v7.
Fix bra.l and bsr.l instructions.
Following the fix of the master branch.
Yoshinori Sato (12):
target/rx: TCG translation
target/rx: TCG helper
target/rx: CPU definition
target/rx: RX disassembler
target/rx: Miscellan
Signed-off-by: Yoshinori Sato
---
MAINTAINERS | 19 +++
1 file changed, 19 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 7dd71e0a2d..e9430b6c0b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -272,6 +272,13 @@ F: include/hw/riscv/
F: linux-user/host/riscv32/
F
rx62n - RX62N cpu.
rxqemu - QEMU virtual target.
Signed-off-by: Yoshinori Sato
---
include/hw/rx/rx.h| 7 ++
include/hw/rx/rx62n.h | 54
hw/rx/rx62n.c | 226 ++
hw/rx/rxqemu.c| 100 ++
hw/rx
This implementation supported only ICUa.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/intc/rx_icu.h | 49 +++
hw/intc/rx_icu.c | 373
This module supported only non FIFO type.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/char/renesas_sci.h | 45 ++
hw/char/renesas_sci.c | 341
Signed-off-by: Yoshinori Sato
---
include/disas/dis-asm.h |5 +
target/rx/disas.c | 1481 +++
2 files changed, 1486 insertions(+)
create mode 100644 target/rx/disas.c
diff --git a/include/disas/dis-asm.h b/include/disas/dis-asm.h
index
Signed-off-by: Yoshinori Sato
---
target/rx/helper.h| 31
target/rx/helper.c| 148
target/rx/op_helper.c | 481 ++
3 files changed, 660 insertions(+)
create mode 100644 target/rx/helper.h
create mode 100644 target
This part only supported RXv1 instructions.
Instruction manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf
Signed-off-by: Yoshinori Sato
---
target/rx/translate.c | 2433
target/rx/insns.decode
On Sat, 04 May 2019 00:20:47 +0900,
Alex Bennée wrote:
>
>
> Yoshinori Sato writes:
>
> > renesas_tmr: 8bit timer modules.
> > renesas_cmt: 16bit compare match timer modules.
> > This part use many renesas's CPU.
> > Hardware manual.
> > https:
On Sat, 04 May 2019 00:38:38 +0900,
Alex Bennée wrote:
>
>
> Yoshinori Sato writes:
>
> > rx62n - RX62N cpu.
> > rxqemu - QEMU virtual target.
> >
> > Signed-off-by: Yoshinori Sato
> > ---
> > include/hw/rx/rx.h| 7 ++
> > inclu
On Sat, 04 May 2019 01:06:44 +0900,
Alex Bennée wrote:
>
>
> Yoshinori Sato writes:
>
> > Signed-off-by: Yoshinori Sato
> > ---
> > target/rx/gdbstub.c | 112
> >
> > target/rx/monitor.c
On Sat, 04 May 2019 03:43:23 +0900,
Richard Henderson wrote:
>
> On 5/2/19 7:33 AM, Yoshinori Sato wrote:
> > +/* conditional branch helper */
> > +static void rx_bcnd_main(DisasContext *ctx, int cd, int dst)
> > +{
> > +DisasCompare dc;
> > +TCGLabel
On Sat, 04 May 2019 00:27:29 +0900,
Alex Bennée wrote:
>
>
> Yoshinori Sato writes:
>
> > Some RX peripheral using 8bit and 16bit registers.
> > Added 8bit and 16bit APIs.
>
> Doesn't this mean the build breaks at some point? Features used by other
> pat
On Sat, 04 May 2019 01:11:48 +0900,
Alex Bennée wrote:
>
>
> Yoshinori Sato writes:
>
> > Hello.
> > This patch series is added Renesas RX target emulation.
>
> I think the series is almost there - it's mostly just nits and clean
> build fixes to sort out
On Sat, 04 May 2019 00:22:44 +0900,
Alex Bennée wrote:
>
>
> Yoshinori Sato writes:
>
>
> nit: typo in subject (serical->serial)
>
> > This module supported only non FIFO type.
> > Hardware manual.
> > https://www.renesas.com/us/en/doc/products/mpum
FIELD_EX16.
- Add extract8 and extract16.
Yoshinori Sato (13):
target/rx: TCG translation
target/rx: TCG helper
target/rx: CPU definition
target/rx: RX disassembler
target/rx: Miscellaneous files
hw/intc: RX62N interrupt controller (ICUa)
hw/timer: RX62N internal timer modules
hw/c
Signed-off-by: Yoshinori Sato
---
target/rx/gdbstub.c | 112
target/rx/monitor.c | 38
target/rx/Makefile.objs | 12 ++
3 files changed, 162 insertions(+)
create mode 100644 target/rx/gdbstub.c
create mode 100644
Some RX peripheral using 8bit and 16bit registers.
Added 8bit and 16bit APIs.
Signed-off-by: Yoshinori Sato
---
include/hw/registerfields.h | 32 +++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/include/hw/registerfields.h b/include/hw
This module supported only non FIFO type.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/char/renesas_sci.h | 45 ++
hw/char/renesas_sci.c | 340
Signed-off-by: Yoshinori Sato
---
include/qemu/bitops.h | 38 ++
1 file changed, 38 insertions(+)
diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h
index 3f0926cf40..0dfd81efb2 100644
--- a/include/qemu/bitops.h
+++ b/include/qemu/bitops.h
@@ -301,6
Signed-off-by: Yoshinori Sato
---
configure | 8
default-configs/rx-softmmu.mak | 7 +++
include/sysemu/arch_init.h | 1 +
arch_init.c| 2 ++
hw/Kconfig | 1 +
5 files changed, 19 insertions(+)
create mode 100644
This implementation supported only ICUa.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/intc/rx_icu.h | 49 +++
hw/intc/rx_icu.c | 375
Signed-off-by: Yoshinori Sato
---
target/rx/helper.h| 31
target/rx/helper.c| 148
target/rx/op_helper.c | 481 ++
3 files changed, 660 insertions(+)
create mode 100644 target/rx/helper.h
create mode 100644 target
renesas_tmr: 8bit timer modules.
renesas_cmt: 16bit compare match timer modules.
This part use many renesas's CPU.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/timer/renesas_cmt.h
Signed-off-by: Yoshinori Sato
---
target/rx/cpu-qom.h | 52
target/rx/cpu.h | 196 ++
target/rx/cpu.c | 222
3 files changed, 470 insertions(+)
create mode 100644 target/rx/cpu
Signed-off-by: Yoshinori Sato
---
include/disas/dis-asm.h |5 +
target/rx/disas.c | 1480 +++
2 files changed, 1485 insertions(+)
create mode 100644 target/rx/disas.c
diff --git a/include/disas/dis-asm.h b/include/disas/dis-asm.h
index
Signed-off-by: Yoshinori Sato
---
MAINTAINERS | 19 +++
1 file changed, 19 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 7dd71e0a2d..e9430b6c0b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -272,6 +272,13 @@ F: include/hw/riscv/
F: linux-user/host/riscv32/
F
This part only supported RXv1 instructions.
Instruction manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf
Signed-off-by: Yoshinori Sato
---
target/rx/translate.c | 2432
target/rx/insns.decode
rx62n - RX62N cpu.
rxqemu - QEMU virtual target.
Signed-off-by: Yoshinori Sato
---
include/hw/rx/rx.h| 7 ++
include/hw/rx/rx62n.h | 54
hw/rx/rx62n.c | 240 ++
hw/rx/rxqemu.c| 100 +
hw/rx
Signed-off-by: Yoshinori Sato
---
target/rx/gdbstub.c | 112
target/rx/monitor.c | 38
target/rx/Makefile.objs | 12 ++
3 files changed, 162 insertions(+)
create mode 100644 target/rx/gdbstub.c
create mode 100644
Signed-off-by: Yoshinori Sato
---
MAINTAINERS | 19 +++
1 file changed, 19 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 66ddbda9c9..1599eb6a72 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -272,6 +272,13 @@ F: include/hw/riscv/
F: linux-user/host/riscv32/
F
Signed-off-by: Yoshinori Sato
---
configure | 8
default-configs/rx-softmmu.mak | 7 +++
include/sysemu/arch_init.h | 1 +
arch_init.c| 2 ++
hw/Kconfig | 1 +
5 files changed, 19 insertions(+)
create mode 100644
Signed-off-by: Yoshinori Sato
---
target/rx/cpu-qom.h | 52
target/rx/cpu.h | 196 ++
target/rx/cpu.c | 222
3 files changed, 470 insertions(+)
create mode 100644 target/rx/cpu
Some RX peripheral using 8bit and 16bit registers.
Added 8bit and 16bit APIs.
Signed-off-by: Yoshinori Sato
---
include/hw/registerfields.h | 32 +++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/include/hw/registerfields.h b/include/hw
/dl/rx-qemu.dtb (DeviceTree)
starting
$ qemu-system-rx -kernel zImage -dtb rx-qemu.dtb -append "earlycon"
Changes for v9.
- Fix "mov.l dsp5[rs],rd".
Yoshinori Sato (13):
target/rx: TCG translation
target/rx: TCG helper
target/rx: CPU definition
target/rx: RX disa
This implementation supported only ICUa.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/intc/rx_icu.h | 49 +++
hw/intc/rx_icu.c | 375
This module supported only non FIFO type.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/char/renesas_sci.h | 45 ++
hw/char/renesas_sci.c | 340
Signed-off-by: Yoshinori Sato
---
target/rx/helper.h| 31
target/rx/helper.c| 148
target/rx/op_helper.c | 481 ++
3 files changed, 660 insertions(+)
create mode 100644 target/rx/helper.h
create mode 100644 target
Signed-off-by: Yoshinori Sato
---
include/qemu/bitops.h | 38 ++
1 file changed, 38 insertions(+)
diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h
index 3f0926cf40..0dfd81efb2 100644
--- a/include/qemu/bitops.h
+++ b/include/qemu/bitops.h
@@ -301,6
renesas_tmr: 8bit timer modules.
renesas_cmt: 16bit compare match timer modules.
This part use many renesas's CPU.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/timer/renesas_cmt.h
rx62n - RX62N cpu.
rxqemu - QEMU virtual target.
Signed-off-by: Yoshinori Sato
---
include/hw/rx/rx.h| 7 ++
include/hw/rx/rx62n.h | 54
hw/rx/rx62n.c | 240 ++
hw/rx/rxqemu.c| 100 +
hw/rx
Signed-off-by: Yoshinori Sato
---
include/disas/dis-asm.h |5 +
target/rx/disas.c | 1480 +++
2 files changed, 1485 insertions(+)
create mode 100644 target/rx/disas.c
diff --git a/include/disas/dis-asm.h b/include/disas/dis-asm.h
index
This part only supported RXv1 instructions.
Instruction manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf
Signed-off-by: Yoshinori Sato
---
target/rx/translate.c | 2432
target/rx/insns.decode
On Thu, 09 May 2019 01:16:58 +0900,
Philippe Mathieu-Daudé wrote:
>
> On 5/8/19 4:56 PM, Yoshinori Sato wrote:
> > This module supported only non FIFO type.
> > Hardware manual.
> > https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pd
On Thu, 09 May 2019 01:27:40 +0900,
Philippe Mathieu-Daudé wrote:
>
> On 5/8/19 4:56 PM, Yoshinori Sato wrote:
> > This implementation supported only ICUa.
> > Hardware manual.
> > https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pd
From: Yoshinori Sato
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
MAINTAINERS | 19 +++
1 file changed, 19 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 66ddbda9c9..1599eb6a72 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -272,6 +272,13 @@ F
-qemu.dtb -append "earlycon"
Changes for v10.
- Fix build error for 32bit system.
- Use "object_initialize_child" in create device instance.
- Remove unused headers.
- Avoid some magic number.
- Clean up Kconfig symbols.
Yoshinori Sato (12):
target/rx: TCG translation
t
From: Yoshinori Sato
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
include/disas/dis-asm.h |5 +
target/rx/disas.c | 1480 +++
2 files changed, 1485 insertions(+)
create mode 100644 target/rx/disas.c
diff --git a
From: Yoshinori Sato
Some RX peripheral using 8bit and 16bit registers.
Added 8bit and 16bit APIs.
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
include/hw/registerfields.h | 32 +++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a
From: Yoshinori Sato
rx62n - RX62N cpu.
rx-virt - RX QEMU virtual target.
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
hw/rx/Kconfig | 14 +++
hw/rx/Makefile.objs | 2 +
hw/rx/rx-virt.c | 105 ++
hw/rx/rx62n.c | 238
From: Yoshinori Sato
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
arch_init.c| 2 ++
configure | 8
default-configs/rx-softmmu.mak | 3 +++
hw/Kconfig | 1 +
include/sysemu/arch_init.h | 1 +
5 files
From: Yoshinori Sato
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
include/qemu/bitops.h | 38 ++
1 file changed, 38 insertions(+)
diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h
index 3f0926cf40..764f9d1ea0 100644
--- a
From: Yoshinori Sato
This implementation supported only ICUa.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
hw/intc/Kconfig | 3 +
hw/intc/Makefile.objs
From: Yoshinori Sato
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
target/rx/cpu.c | 222 ++
target/rx/cpu.h | 227
target/rx/gdbstub.c | 112
From: Yoshinori Sato
This module supported only non FIFO type.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
hw/char/Kconfig | 3 +
hw/char
From: Yoshinori Sato
renesas_tmr: 8bit timer modules.
renesas_cmt: 16bit compare match timer modules.
This part use many renesas's CPU.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
Signed-o
From: Yoshinori Sato
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
target/rx/helper.c| 148
target/rx/helper.h| 31
target/rx/op_helper.c | 481 ++
3 files changed, 660 insertions(+)
create mode
From: Yoshinori Sato
This part only supported RXv1 instructions.
Instruction manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf
Signed-off-by: Yoshinori Sato
Signed-off-by: Yoshinori Sato
---
target/rx/Makefile.objs | 12 +
target/rx
Oh. Sorry.
I fount one other problem.
I will fix it and re-send later.
2019年5月14日(火) 2:26 Philippe Mathieu-Daudé :
>
> Hi Yoshinori,
>
> On 5/13/19 7:25 AM, Yoshinori Sato wrote:
> > Hello.
> > This patch series is added Renesas RX target emulation.
> >
> > F
Some RX peripheral using 8bit and 16bit registers.
Added 8bit and 16bit APIs.
Signed-off-by: Yoshinori Sato
---
include/hw/registerfields.h | 32 +++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/include/hw/registerfields.h b/include/hw
Signed-off-by: Yoshinori Sato
---
MAINTAINERS | 19 +++
1 file changed, 19 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index a73a61a546..ef6a02702e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -272,6 +272,13 @@ F: include/hw/riscv/
F: linux-user/host/riscv32/
F
renesas_tmr: 8bit timer modules.
renesas_cmt: 16bit compare match timer modules.
This part use many renesas's CPU.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/timer/renesas_cmt.h
Signed-off-by: Yoshinori Sato
---
configure | 8
default-configs/rx-softmmu.mak | 3 +++
include/sysemu/arch_init.h | 1 +
arch_init.c| 2 ++
hw/Kconfig | 1 +
5 files changed, 15 insertions(+)
create mode 100644 default
-dtb rx-qemu.dtb -append "earlycon"
Changes for v11.
- Fix ROM address.
Yoshinori Sato (12):
target/rx: TCG translation
target/rx: TCG helper
target/rx: CPU definition
target/rx: RX disassembler
hw/intc: RX62N interrupt controller (ICUa)
hw/timer: RX62N internal timer modules
Signed-off-by: Yoshinori Sato
---
target/rx/cpu.h | 227
target/rx/cpu.c | 222 ++
target/rx/gdbstub.c | 112 ++
target/rx/monitor.c | 38 +
4 files
This part only supported RXv1 instructions.
Instruction manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf
Signed-off-by: Yoshinori Sato
---
target/rx/translate.c | 2432 +++
target/rx/Makefile.objs
This implementation supported only ICUa.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/intc/rx_icu.h | 57 +++
hw/intc/rx_icu.c | 376
Signed-off-by: Yoshinori Sato
---
include/qemu/bitops.h | 38 ++
1 file changed, 38 insertions(+)
diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h
index 3f0926cf40..764f9d1ea0 100644
--- a/include/qemu/bitops.h
+++ b/include/qemu/bitops.h
@@ -301,6
This module supported only non FIFO type.
Hardware manual.
https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf
Signed-off-by: Yoshinori Sato
---
include/hw/char/renesas_sci.h | 45 ++
hw/char/renesas_sci.c | 340
Signed-off-by: Yoshinori Sato
---
target/rx/helper.h| 31
target/rx/helper.c| 148
target/rx/op_helper.c | 481 ++
3 files changed, 660 insertions(+)
create mode 100644 target/rx/helper.h
create mode 100644 target
From: Richard Henderson
Fixes check-qtest-rx: tests/qmp-cmd-test
Signed-off-by: Richard Henderson
Signed-off-by: Yoshinori Sato
---
qapi/common.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/qapi/common.json b/qapi/common.json
index 99d313ef3b..d0fc931159 100644
From: Richard Henderson
Note that the ld == 3 case handled by prt_ldmi is decoded as
XCHG_rr and cannot appear here.
Reviewed-by: Yoshinori Sato
Signed-off-by: Richard Henderson
Signed-off-by: Yoshinori Sato
---
target/rx/disas.c | 8 +---
1 file changed, 1 insertion(+), 7 deletions
From: Richard Henderson
Fixes check-qtest-rx: tests/machine-none-test.
Signed-off-by: Richard Henderson
Signed-off-by: Yoshinori Sato
---
tests/machine-none-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/machine-none-test.c b/tests/machine-none-test.c
index 4c6d470798
e.
Rename the base class to "rx-cpu" and make it abstract. This
matches what we do for most other targets. Create a new concrete
cpu with the name "rx62n-rx-cpu".
Signed-off-by: Richard Henderson
Signed-off-by: Yoshinori Sato
---
target/rx/cpu.h | 12 ++--
hw/rx/rx
From: Richard Henderson
There are so many different forms of each RX instruction
that it will be very useful to be able to look at the bytes
to see on which path a bug may lie.
Reviewed-by: Yoshinori Sato
Signed-off-by: Richard Henderson
Signed-off-by: Yoshinori Sato
---
target/rx/disas.c
Signed-off-by: Yoshinori Sato
Reviewed-by: Richard Henderson
Message-Id: <20190516055244.95559-3-ys...@users.sourceforge.jp>
Signed-off-by: Richard Henderson
---
target/rx/helper.h| 31
target/rx/helper.c| 148
target/rx/op_helper.c
From: Richard Henderson
The interface for tlb_fill has changed very recently.
Move the function into cpu.c so that it may be static
while assigning to the CPUClass methods.
Reviewed-by: Philippe Mathieu-Daudé
Signed-off-by: Richard Henderson
Signed-off-by: Yoshinori Sato
---
target/rx/cpu.c
Signed-off-by: Yoshinori Sato
Reviewed-by: Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé
Message-Id: <20190516055244.95559-12-ys...@users.sourceforge.jp>
Signed-off-by: Richard Henderson
---
include/qemu/bitops.h | 38 ++
1 file chang
Signed-off-by: Yoshinori Sato
Reviewed-by: Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé
Message-Id: <20190516055244.95559-13-ys...@users.sourceforge.jp>
Signed-off-by: Richard Henderson
---
MAINTAINERS | 19 +++
1 file changed, 19 insertions(+)
diff -
1 - 100 of 758 matches
Mail list logo