[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v10 07/13] hw/timer: RX62N internal timer module
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v10 07/13] hw/timer: RX62N internal timer modules |
Date: |
Wed, 8 May 2019 18:31:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 5/8/19 4:56 PM, Yoshinori Sato wrote:
> 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 <address@hidden>
> ---
> include/hw/timer/renesas_cmt.h | 33 +++
> include/hw/timer/renesas_tmr.h | 46 +++++
> hw/timer/renesas_cmt.c | 277 +++++++++++++++++++++++++
> hw/timer/renesas_tmr.c | 458
> +++++++++++++++++++++++++++++++++++++++++
> hw/timer/Kconfig | 6 +
> hw/timer/Makefile.objs | 3 +
> 6 files changed, 823 insertions(+)
> create mode 100644 include/hw/timer/renesas_cmt.h
> create mode 100644 include/hw/timer/renesas_tmr.h
> create mode 100644 hw/timer/renesas_cmt.c
> create mode 100644 hw/timer/renesas_tmr.c
Errors on 32bit host:
CC hw/timer/renesas_tmr.o
In file included from qemu/hw/timer/renesas_tmr.c:24:0:
qemu/hw/timer/renesas_tmr.c: In function 'tmr_read':
qemu/hw/timer/renesas_tmr.c:186:23: error: format '%lx' expects argument
of type 'long unsigned int', but argument 2 has type 'hwaddr {aka long
long unsigned int}' [-Werror=format=]
"renesas_tmr: Invalid read size %08lx.\n", offset);
^
qemu/include/qemu/log.h:85:22: note: in definition of macro 'qemu_log_mask'
qemu_log(FMT, ## __VA_ARGS__); \
^
qemu/hw/timer/renesas_tmr.c:239:23: error: format '%lx' expects argument
of type 'long unsigned int', but argument 2 has type 'hwaddr {aka long
long unsigned int}' [-Werror=format=]
"renesas_tmr: Register %08lx not implemented\n",
^
qemu/include/qemu/log.h:85:22: note: in definition of macro 'qemu_log_mask'
qemu_log(FMT, ## __VA_ARGS__); \
^
qemu/hw/timer/renesas_tmr.c: In function 'tmr_write':
qemu/hw/timer/renesas_tmr.c:267:23: error: format '%lx' expects argument
of type 'long unsigned int', but argument 2 has type 'hwaddr {aka long
long unsigned int}' [-Werror=format=]
"renesas_tmr: Invalid write size %08lx.\n", offset);
^
qemu/include/qemu/log.h:85:22: note: in definition of macro 'qemu_log_mask'
qemu_log(FMT, ## __VA_ARGS__); \
^
qemu/hw/timer/renesas_tmr.c:291:23: error: format '%lx' expects argument
of type 'long unsigned int', but argument 2 has type 'hwaddr {aka long
long unsigned int}' [-Werror=format=]
"renesas_tmr: Register %08lx not implemented\n",
^
qemu/include/qemu/log.h:85:22: note: in definition of macro 'qemu_log_mask'
qemu_log(FMT, ## __VA_ARGS__); \
^
CC hw/timer/renesas_cmt.o
In file included from qemu/hw/timer/renesas_cmt.c:24:0:
qemu/hw/timer/renesas_cmt.c: In function 'cmt_read':
qemu/hw/timer/renesas_cmt.c:127:19: error: format '%lx' expects argument
of type 'long unsigned int', but argument 2 has type 'hwaddr {aka long
long unsigned int}' [-Werror=format=]
"renesas_cmt: Register %08lx not implemented\n",
^
qemu/include/qemu/log.h:85:22: note: in definition of macro 'qemu_log_mask'
qemu_log(FMT, ## __VA_ARGS__); \
^
qemu/hw/timer/renesas_cmt.c: In function 'cmt_write':
qemu/hw/timer/renesas_cmt.c:171:27: error: format '%lx' expects argument
of type 'long unsigned int', but argument 2 has type 'hwaddr {aka long
long unsigned int}' [-Werror=format=]
"renesas_cmt: Register %08lx not implemented\n",
^
qemu/include/qemu/log.h:85:22: note: in definition of macro 'qemu_log_mask'
qemu_log(FMT, ## __VA_ARGS__); \
^
cc1: all warnings being treated as errors
- Re: [Qemu-devel] [PATCH v10 03/13] target/rx: CPU definition, (continued)
- [Qemu-devel] [PATCH v10 06/13] hw/intc: RX62N interrupt controller (ICUa), Yoshinori Sato, 2019/05/08
- [Qemu-devel] [PATCH v10 08/13] hw/char: RX62N serial communication interface (SCI), Yoshinori Sato, 2019/05/08
- [Qemu-devel] [PATCH v10 12/13] hw/registerfields.h: Add 8bit and 16bit register macros., Yoshinori Sato, 2019/05/08
- [Qemu-devel] [PATCH v10 13/13] qemu/bitops.h: Add extract8 and extract16, Yoshinori Sato, 2019/05/08
- [Qemu-devel] [PATCH v10 09/13] hw/rx: RX Target hardware definition, Yoshinori Sato, 2019/05/08
- [Qemu-devel] [PATCH v10 07/13] hw/timer: RX62N internal timer modules, Yoshinori Sato, 2019/05/08
- Re: [Qemu-devel] [PATCH v10 07/13] hw/timer: RX62N internal timer modules,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v10 04/13] target/rx: RX disassembler, Yoshinori Sato, 2019/05/08
- [Qemu-devel] [PATCH v10 02/13] target/rx: TCG helper, Yoshinori Sato, 2019/05/08
- [Qemu-devel] [PATCH v10 01/13] target/rx: TCG translation, Yoshinori Sato, 2019/05/08
- Re: [Qemu-devel] [PATCH v10 00/13] Add RX archtecture support, Richard Henderson, 2019/05/08