[Qemu-devel] [PATCH 33/35] target/mips: Fix gdbstub to read/write 64 bit FP registers

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Fix gdbstub to read/write 64 bit FP registers Signed-off-by: Yongbok Kim --- target/mips/gdbstub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/mips/gdbstub.c b/target/mips/gdbstub.c index 6d1fb70..18e0e6d 100644 --- a/target/mips/gdbstub.c

[Qemu-devel] [PATCH 31/35] mips_malta: Setup GT64120 BARs in nanoMIPS bootloader

2018-06-20 Thread Yongbok Kim
From: Paul Burton Setup the GT64120 BARs in the nanoMIPS bootloader, in the same way that they are setup in the MIPS32 bootloader. This is necessary for Linux to be able to access peripherals, including the UART. Signed-off-by: Paul Burton Signed-off-by: Yongbok Kim --- hw/mips/mips_malta.c

[Qemu-devel] [PATCH 32/35] hw/mips: Fix semihosting argument passing for nanoMIPS bare metal

2018-06-20 Thread Yongbok Kim
From: Stefan Markovic Fix semihosting argument passing for nanoMIPS bare metal Signed-off-by: Yongbok Kim --- hw/mips/mips_malta.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index c4139d6..6207d83 100644 --- a/hw/mips

[Qemu-devel] [PATCH 34/35] target/mips: Disable gdbstub nanoMIPS ISA bit

2018-06-20 Thread Yongbok Kim
From: James Hogan nanoMIPS has no ISA bit in the PC, so remove the handling of the low bit of the PC in the MIPS gdbstub for nanoMIPS. This prevents the PC being read as e.g. 0xbfc1, and prevents writing to the PC clearing MIPS_HFLAG_M16. Signed-off-by: James Hogan Signed-off-by: Yongbok

[Qemu-devel] [PATCH 35/35] target/mips: Add I7200 CPU

2018-06-20 Thread Yongbok Kim
From: Stefan Markovic Add I7200 CPU Reference: https://www.mips.com/products/warrior/i-class-i7200-multiprocessor-core/ Signed-off-by: Yongbok Kim --- target/mips/translate_init.inc.c | 37 + 1 file changed, 37 insertions(+) diff --git a/target/mips

[Qemu-devel] [PATCH 27/35] target/mips: Fix nanoMIPS set_hflags_for_handler

2018-06-20 Thread Yongbok Kim
From: James Hogan We shouldn't clear M16 mode when entering an interrupt on nanoMIPS, otherwise we'll start interpreting the code as normal MIPS code. Signed-off-by: James Hogan Signed-off-by: Yongbok Kim --- target/mips/helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --gi

[Qemu-devel] [PATCH 29/35] target/mips: Fix ERET/ERETNC can cause ADEL exception

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Fix ERET/ERETNC can cause ADEL exception Signed-off-by: Yongbok Kim --- target/mips/op_helper.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 6f5e5a3..09ec20a 100644 --- a/target/mips

[Qemu-devel] [PATCH 30/35] hw/mips: Add basic nanoMIPS boot code

2018-06-20 Thread Yongbok Kim
From: Matthew Fortune Added very very basic R7 boot code but this is hacked in unconditionally currently. Yongbok: Fix to use right boot loader Signed-off-by: Yongbok Kim --- hw/mips/mips_malta.c | 75 +++- include/elf.h| 1 + 2 files

[Qemu-devel] [PATCH 23/35] target/mips: Update BadInstr{P} regs on nanoMIPS

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Update BadInstr{P} registers on nanoMIPS Signed-off-by: Yongbok Kim --- target/mips/helper.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/target/mips/helper.c b/target/mips/helper.c index e215af9..5299f21 100644 --- a/target

[Qemu-devel] [PATCH 16/35] target/mips: Add has_isa_mode

2018-06-20 Thread Yongbok Kim
From: Matthew Fortune ISA mode bit (LSB of address) is no longer required but is also masked to allow for tools transition. Signed-off-by: Yongbok Kim --- target/mips/translate.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/target/mips/translate.c b/target/mips

[Qemu-devel] [PATCH 28/35] target/mips: Fix nanoMIPS set_pc

2018-06-20 Thread Yongbok Kim
From: James Hogan ERET and ERETNC shouldn't clear MIPS_HFLAG_M16 for nanoMIPS since there is no ISA bit, so fix set_pc() to skip the hflags update. Signed-off-by: James Hogan Signed-off-by: Yongbok Kim --- target/mips/op_helper.c | 4 1 file changed, 4 insertions(+) diff --git a/t

[Qemu-devel] [PATCH 20/35] target/mips: Fix not to update BadVAddr in Debug Mode

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim BadVaddr shouldn't be updated in Debug Mode Signed-off-by: Yongbok Kim --- target/mips/helper.c| 4 +++- target/mips/op_helper.c | 20 +++- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/target/mips/helper.c b/target/mips/helper.c

[Qemu-devel] [PATCH 15/35] target/mips: Implement nanoMIPS EXTW instruction

2018-06-20 Thread Yongbok Kim
= size of the word), and implement gen_align() and a new gen_ext() based on that. Since we need to know the word size to check for when the number of bits == the word size, the opc argument is replaced with a wordsz argument (either 32 or 64). Signed-off-by: James Hogan Signed-off-by: Yongbok Kim

[Qemu-devel] [PATCH 25/35] target/mips: Config3.ISAOnExc is read only in nanoMIPS

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Config3.ISAOnExc is read only in nanoMIPS Signed-off-by: Yongbok Kim --- target/mips/op_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 102a039..9946f77 100644 --- a/target/mips

[Qemu-devel] [PATCH 11/35] target/mips: Add nanoMIPS pool32a0 instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS pool32a0 instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 190 1 file changed, 190 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index 0175a57..0c261c7 100644 --- a/target/mips

[Qemu-devel] [PATCH 26/35] target/mips: Fix nanoMIPS exception_resume_pc

2018-06-20 Thread Yongbok Kim
From: James Hogan We shouldn't set the ISA bit in CP0_EPC for nanoMIPS. Signed-off-by: James Hogan Signed-off-by: Yongbok Kim --- target/mips/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/mips/helper.c b/target/mips/helper.c index 9535131..20

[Qemu-devel] [PATCH 24/35] target/mips: Add nanoMIPS CP0_BadInstrX register

2018-06-20 Thread Yongbok Kim
From: Stefan Markovic Add nanoMIPS CP0_BadInstrX register Signed-off-by: Stefan Markovic Signed-off-by: Yongbok Kim --- target/mips/cpu.h | 1 + target/mips/helper.c| 6 ++ target/mips/machine.c | 1 + target/mips/translate.c | 18 ++ 4 files changed, 26

[Qemu-devel] [PATCH 14/35] target/mips: Add nanoMIPS p_lsx instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS p_lsx and LSA instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 139 +++- 1 file changed, 138 insertions(+), 1 deletion(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index a581330..819cfd9 100644

[Qemu-devel] [PATCH 19/35] target/mips: Implement nanoMIPS LLWP/SCWP pair

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Implement nanoMIPS LLWP and SCWP instruction pair. Signed-off-by: Yongbok Kim --- linux-user/mips/cpu_loop.c | 25 --- target/mips/cpu.h | 2 + target/mips/helper.h | 2 + target/mips/op_helper.c| 35 +++ target/mips/translate.c

[Qemu-devel] [PATCH 22/35] target/mips: Fix data type for offset

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Offset can be larger than 16 bit from nanoMIPS, and immediate field can be larger than 16 bits as well. Signed-off-by: Yongbok Kim --- target/mips/translate.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/mips/translate.c b/target/mips

[Qemu-devel] [PATCH 13/35] target/mips: Update gen_flt_ldst()

2018-06-20 Thread Yongbok Kim
Update gen_flt_ldst() in order to reuse the functions for nanoMIPS Signed-off-by: Yongbok Kim --- target/mips/translate.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 60d9287..a581330 100644 --- a

[Qemu-devel] [PATCH 08/35] target/mips: Add nanoMIPS 32bit instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS 32bit instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 285 +++- 1 file changed, 284 insertions(+), 1 deletion(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 4ce80bf..c9b46dd 100644 --- a

[Qemu-devel] [PATCH 18/35] target/mips: Add nanoMIPS branch instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS branch instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 277 1 file changed, 277 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index 08765a7..948d3d5 100644 --- a/target/mips

[Qemu-devel] [PATCH 10/35] target/mips: Add nanoMIPS pool32f instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS pool32f floating point instructions. Signed-off-by: Yongbok Kim --- target/mips/translate.c | 300 1 file changed, 300 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index f3a8845..0175a57 100644 --- a

[Qemu-devel] [PATCH 06/35] target/mips: Add nanoMIPS pool16c instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS pool16c instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index f5b7e14..c1a98da 100644 --- a/target/mips/translate.c +++ b/target/mips

[Qemu-devel] [PATCH 21/35] target/mips: Add nanoMIPS rotx instruction

2018-06-20 Thread Yongbok Kim
From: Matthew Fortune Added a helper for rotx based on the pseudocode from the arch spec. Signed-off-by: Yongbok Kim --- target/mips/helper.h| 2 ++ target/mips/op_helper.c | 94 + target/mips/translate.c | 15 3 files changed, 111

[Qemu-devel] [PATCH 17/35] target/mips: Add nanoMIPS load store instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS load and store instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 271 1 file changed, 271 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index 2e794da..08765a7 100644 --- a/target

[Qemu-devel] [PATCH 07/35] target/mips: Add nanoMIPS save and restore

2018-06-20 Thread Yongbok Kim
From: Matthew Fortune Add nanoMIPS save and restore instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 74 + 1 file changed, 74 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index c1a98da

[Qemu-devel] [PATCH 05/35] target/mips: Add nanoMIPS 16bit ld/st instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS 16bit load and store instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 110 1 file changed, 110 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index 633d0b4..f5b7e14 100644 --- a

[Qemu-devel] [PATCH 04/35] target/mips: Add decode_nanomips_opc()

2018-06-20 Thread Yongbok Kim
Add nanoMIPS decoder. It covers P16 pool arithmetic and branch instructions. Signed-off-by: Yongbok Kim --- target/mips/translate.c | 293 +++- 1 file changed, 292 insertions(+), 1 deletion(-) diff --git a/target/mips/translate.c b/target/mips

[Qemu-devel] [PATCH 12/35] target/mips: Add nanoMIPS pool32axf instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS pool32axf instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 94 + 1 file changed, 94 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index 0c261c7..60d9287 100644 --- a/target/mips

[Qemu-devel] [PATCH 02/35] target/mips: Fix microMIPS on reset

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Fix to activate microMIPS (and nanoMIPS) on reset when Config3.ISA == {1, 3} Signed-off-by: Yongbok Kim --- target/mips/translate.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index e57d71e..bfbc300 100644 --- a

[Qemu-devel] [PATCH 09/35] target/mips: Add nanoMIPS 48bit instructions

2018-06-20 Thread Yongbok Kim
Add nanoMIPS 48bit instructions Signed-off-by: Yongbok Kim --- target/mips/translate.c | 66 + 1 file changed, 66 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index c9b46dd..f3a8845 100644 --- a/target/mips

[Qemu-devel] [PATCH 03/35] target/mips: Add nanoMIPS OPCODE table

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Add nanoMIPS OPCODE table Reference: nanoMIPS Base ISA Technical Reference Manual Signed-off-by: Yongbok Kim --- target/mips/mips-defs.h | 4 + target/mips/translate.c | 670 2 files changed, 674 insertions(+) diff --git a

[Qemu-devel] [PATCH 01/35] target/mips: Raise a RI when given fs is n/a from CTC1

2018-06-20 Thread Yongbok Kim
From: Yongbok Kim Fix to raise a Reserved Instruction exception when given fs is not available from CTC1. Signed-off-by: Yongbok Kim --- target/mips/op_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 9025f42..41d3634

[Qemu-devel] [PATCH 00/35] nanoMIPS

2018-06-20 Thread Yongbok Kim
semihosting argument passing for nanoMIPS bare metal target/mips: Add I7200 CPU Yongbok Kim (22): target/mips: Raise a RI when given fs is n/a from CTC1 target/mips: Fix microMIPS on reset target/mips: Add nanoMIPS OPCODE table target/mips: Add decode_nanomips_opc() target/mips: Add

Re: [Qemu-devel] [PATCH] MAINTAINERS: update target-mips maintainers

2018-06-19 Thread Yongbok Kim
On 18/06/2018 19:29, Aleksandar Markovic wrote: From: Aleksandar Markovic Yongbok Kim transfers duties of QEMU for target MIPS maintainer to myself as he leaves MIPS. Many thanks to Yongbok for his substantial contributing to QEMU for MIPS over many years and taking care of its maintainance

Re: [Qemu-devel] [PATCH V5] hw/pcie-pci-bridge: restrict to X86 and ARM

2017-11-14 Thread Yongbok Kim
dge.o common-obj-$(CONFIG_XIO3130) += xio3130_upstream.o xio3130_downstream.o common-obj-$(CONFIG_IOH3420) += ioh3420.o Hi Marcel, Philippe. It looks ok for MIPS Boston. [Yongbok Kim:   tested for MIPS boston] Tested-by: Yongbok Kim Regards, Yongbok

[Qemu-devel] [PULL v2 3/3] MAINTAINERS: Update Paul Burton's email address

2017-11-06 Thread Yongbok Kim
new @mips.com address, and get_maintainer.pl in turn reports it when examining git history. Whilst here add a mapping for my also-defunct p...@archlinuxmips.org email address too. Signed-off-by: Paul Burton Cc: Laurent Vivier Cc: Michael Tokarev Cc: Yongbok Kim Cc: Yongbok Kim Cc: qemu-devel@nongnu

[Qemu-devel] [PULL v2 1/3] MAINTAINERS: Update Yongbok Kim's email address

2017-11-06 Thread Yongbok Kim
From: Yongbok Kim Update my email address to mips.com Signed-off-by: Yongbok Kim --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1fd7a62..44aa71e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -162,7 +162,7 @@ F: disas

[Qemu-devel] [PULL v2 2/3] MAINTAINERS: Update James Hogan's email address

2017-11-06 Thread Yongbok Kim
Vivier Cc: qemu-devel@nongnu.org Cc: qemu-triv...@nongnu.org Reviewed-by: Laurent Vivier [Yongbok Kim: Updated message subject] Signed-off-by: Yongbok Kim --- .mailmap| 1 + MAINTAINERS | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index 28defa1

[Qemu-devel] [PULL v2 0/3] target-mips queue

2017-11-06 Thread Yongbok Kim
tags/mips-20171106 for you to fetch changes up to 94d973bdaacb69b034f675fc0fd3f285fea17f94: MAINTAINERS: Update Paul Burton's email address (2017-11-06 07:36:43 -0800) MIPS patches 2017-11-06 Changes: Update email addresses of Yon

[Qemu-devel] [PULL v2 0/3] target-mips queue

2017-11-06 Thread Yongbok Kim
tags/mips-20171106 for you to fetch changes up to 94d973bdaacb69b034f675fc0fd3f285fea17f94: MAINTAINERS: Update Paul Burton's email address (2017-11-06 07:36:43 -0800) MIPS patches 2017-11-06 Changes: Update email addresses of Yon

Re: [Qemu-devel] [PULL 0/3] MIPS queue

2017-10-30 Thread Yongbok Kim
On 30/10/2017 14:20, Peter Maydell wrote: On 30 October 2017 at 14:09, Yongbok Kim wrote: On 23/10/2017 15:46, Yongbok Kim wrote: The following changes since commit e822e81e350825dd94f41ee2538ff1432b812eb9: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request&

Re: [Qemu-devel] [PULL 0/3] MIPS queue

2017-10-30 Thread Yongbok Kim
On 23/10/2017 15:46, Yongbok Kim wrote: The following changes since commit e822e81e350825dd94f41ee2538ff1432b812eb9: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2017-10-20 15:04:00 +0100) are available in the git repository at: git://

[Qemu-devel] [PULL 2/3] MAINTAINERS: Update James Hogan's email address

2017-10-23 Thread Yongbok Kim
Vivier Cc: qemu-devel@nongnu.org Cc: qemu-triv...@nongnu.org Reviewed-by: Laurent Vivier [Yongbok Kim: Updated message subject] Signed-off-by: Yongbok Kim --- .mailmap|1 + MAINTAINERS |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/.mailmap b/.mailmap index

[Qemu-devel] [PULL 3/3] MAINTAINERS: Update Paul Burton's email address

2017-10-23 Thread Yongbok Kim
new @mips.com address, and get_maintainer.pl in turn reports it when examining git history. Whilst here add a mapping for my also-defunct p...@archlinuxmips.org email address too. Signed-off-by: Paul Burton Cc: Laurent Vivier Cc: Michael Tokarev Cc: Yongbok Kim Cc: Yongbok Kim Cc: qemu-devel@nongnu

[Qemu-devel] [PULL 1/3] MAINTAINERS: Update Yongbok Kim's email address

2017-10-23 Thread Yongbok Kim
Update my email address to mips.com Signed-off-by: Yongbok Kim --- MAINTAINERS |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1217542..245f7d5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -162,7 +162,7 @@ F: disas/microblaze.c

[Qemu-devel] [PULL 0/3] MIPS queue

2017-10-23 Thread Yongbok Kim
-mips.next MIPS patches 2017-10-23 Changes: Update email addresses of Yongbok Kim, James Hogan and Paul Burton. James Hogan (1): MAINTAINERS: Update James Hog

[Qemu-devel] [PATCH] MAINTAINERS: update email address

2017-10-17 Thread Yongbok Kim
Update my email address to mips.com Signed-off-by: Yongbok Kim --- MAINTAINERS |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 9522d1b..726b151 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -162,7 +162,7 @@ F: disas/microblaze.c

[Qemu-devel] [PULL 1/7] mips: move hw/mips/cputimer.c to target/mips/

2017-09-21 Thread Yongbok Kim
x27; targets, remove an unnecessary include. Signed-off-by: Philippe Mathieu-Daudé Tested-by: Igor Mammedov Tested-by: James Hogan Acked-by: Eduardo Habkost Signed-off-by: Yongbok Kim --- hw/mips/Makefile.objs | 2 +- hw/mips/cputimer.c| 165 --

[Qemu-devel] [PULL 6/7] mips: replace cpu_mips_init() with cpu_generic_init()

2017-09-21 Thread Yongbok Kim
: James Hogan Reviewed-by: Eduardo Habkost Signed-off-by: Yongbok Kim --- hw/mips/cps.c | 2 +- hw/mips/mips_fulong2e.c | 2 +- hw/mips/mips_jazz.c | 2 +- hw/mips/mips_malta.c| 2 +- hw/mips/mips_mipssim.c | 2 +- hw/mips/mips_r4k.c | 2 +- target/mips/cpu.h | 3

[Qemu-devel] [PULL 2/7] mips: introduce internal.h and cleanup cpu.h

2017-09-21 Thread Yongbok Kim
From: Philippe Mathieu-Daudé no logical change, only code movement (and fix a comment typo). Signed-off-by: Philippe Mathieu-Daudé Tested-by: Igor Mammedov Tested-by: James Hogan Acked-by: Eduardo Habkost Signed-off-by: Yongbok Kim --- target/mips/cp0_timer.c | 1 + target/mips/cpu.c

[Qemu-devel] [PULL 3/7] mips: split cpu_mips_realize_env() out of cpu_mips_init()

2017-09-21 Thread Yongbok Kim
From: Philippe Mathieu-Daudé so it can be used in mips_cpu_realizefn() in the next commit Signed-off-by: Philippe Mathieu-Daudé Tested-by: Igor Mammedov Tested-by: James Hogan Reviewed-by: Eduardo Habkost Signed-off-by: Yongbok Kim --- target/mips/internal.h | 1 + target/mips

[Qemu-devel] [PULL 0/7] target-mips queue

2017-09-21 Thread Yongbok Kim
Hi, The patch 1 and 2 contain checkpatch.pl errors but patch 1 is relocating a file and patch 2 has false positive warnings. Regards, Yongbok The following changes since commit ff5667ed53c544c4dc88dcd7cb23cc509c9a55e0: Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' in

[Qemu-devel] [PULL 7/7] mips: Improve macro parenthesization

2017-09-21 Thread Yongbok Kim
From: Eric Blake Although none of the existing macro call-sites were broken, it's always better to write macros that properly parenthesize arguments that can be complex expressions, so that the intended order of operations is not broken. Signed-off-by: Eric Blake Reviewed-by: Yongbo

[Qemu-devel] [PULL 5/7] mips: MIPSCPU model subclasses

2017-09-21 Thread Yongbok Kim
, address Eduardo Habkost review] Tested-by: James Hogan Reviewed-by: Eduardo Habkost Signed-off-by: Yongbok Kim --- target/mips/cpu-qom.h| 1 + target/mips/cpu.c| 50 - target/mips/internal.h | 59

[Qemu-devel] [PULL 4/7] mips: call cpu_mips_realize_env() from mips_cpu_realizefn()

2017-09-21 Thread Yongbok Kim
Hogan Reviewed-by: Eduardo Habkost Signed-off-by: Yongbok Kim --- target/mips/cpu.c | 3 +++ target/mips/translate.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/mips/cpu.c b/target/mips/cpu.c index 68bf423..e3ef835 100644 --- a/target/mips/cpu.c +++ b/target

Re: [Qemu-devel] [PATCH] mips: Improve macro parenthesization

2017-09-19 Thread Yongbok Kim
) > > -#define MIPSDSP_RETURN64_16(a, b, c, d) (((uint64_t)a << 48) | \ > - ((uint64_t)b << 32) | \ > - ((uint64_t)c << 16) | \ > - (uint64_t)d) > -#define MIPSDSP_RETURN64_32(a, b) (((uint64_t)a << 32) | (uint64_t)b) > +#define MIPSDSP_RETURN64_16(a, b, c, d) (((uint64_t)(a) << 48) |\ > + ((uint64_t)(b) << 32) |\ > + ((uint64_t)(c) << 16) |\ > + (uint64_t)(d)) > +#define MIPSDSP_RETURN64_32(a, b) (((uint64_t)(a) << 32) | > (uint64_t)(b)) > #endif > > /** DSP Arithmetic Sub-class insns **/ > Reviewed-by: Yongbok Kim Regards, Yongbok

Re: [Qemu-devel] MIPS 'move' insn emulation

2017-09-14 Thread Yongbok Kim
On 14/09/2017 15:16, Sergey Smolov wrote: > > On 14.09.2017 16:58, Peter Maydell wrote: >> At translate time it is generating some extra code which at runtime >> will call the helper_trace_reg_access() function, passing it the >> values in the registers at this point. This will result in poor >>

Re: [Qemu-devel] MIPS 'move' insn emulation

2017-09-13 Thread Yongbok Kim
On 13/09/2017 12:01, Peter Maydell wrote: > On 13 September 2017 at 08:29, Sergey Smolov wrote: >> -d options are a bit high-level for me, because I just see the execution >> result for every instruction. So it will be a mistake to think that every >> change of some register's value is just a ne

Re: [Qemu-devel] [PATCH v2 0/7] QOMify MIPS cpu

2017-09-04 Thread Yongbok Kim
On 01/09/2017 17:09, Philippe Mathieu-Daudé wrote: > On 09/01/2017 12:48 PM, Eduardo Habkost wrote: >> On Fri, Sep 01, 2017 at 12:44:42PM -0300, Philippe Mathieu-Daudé wrote: >>> On 09/01/2017 12:18 PM, Eduardo Habkost wrote: On Wed, Aug 30, 2017 at 07:52:18PM -0300, Philippe Mathieu-Daudé w

Re: [Qemu-devel] [PATCH for-2.10] target/mips: remove MIPS16 ASE from 4Km

2017-08-08 Thread Yongbok Kim
On 08/08/2017 16:43, Philippe Mathieu-Daudé wrote: > On 08/08/2017 09:15 AM, Philippe Mathieu-Daudé wrote: >> probably incorrect copy/paste from 8d162c2b68db72623a507069fda0e35ccd1c6b85 > > incorrect since 10 years, so can wait 2.11 :P Fair enough :) Regards, Yongbok

Re: [Qemu-devel] [PATCH for-2.10] target/mips: remove MIPS16 ASE from 4Km

2017-08-08 Thread Yongbok Kim
insn_flags = CPU_MIPS32, > .mmu_type = MMU_TYPE_FMT, > }, > { > Reviewed-by: Yongbok Kim Regards, Yongbok

[Qemu-devel] [PULL 6/8] target/mips: Use BS_EXCP where interrupts are expected

2017-08-03 Thread Yongbok Kim
78 ("target/arm: use DISAS_EXIT for eret handling"). Fixes: e350d8ca3ac7 ("target/mips: optimize indirect branches") Signed-off-by: James Hogan Cc: Aurelien Jarno Cc: Yongbok Kim Cc: Richard Henderson Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim

[Qemu-devel] [PULL 4/8] mips: Add KVM T&E segment support for TCG

2017-08-03 Thread Yongbok Kim
f-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Cc: Paolo Bonzini Cc: k...@vger.kernel.org Reviewed-by: Richard Henderson [Yongbok Kim: minor change] Signed-off-by: Yongbok Kim --- hw/mips/addr.c| 12 hw/mips/mips_malta.c | 19 --- include/hw/

[Qemu-devel] [PULL 3/8] mips: Improve segment defs for KVM T&E guests

2017-08-03 Thread Yongbok Kim
gned (int32_t) types. Signed-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Cc: Paolo Bonzini Cc: k...@vger.kernel.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yongbok Kim --- target/mips/helper.c | 23 +++ 1 file changed, 11 insertions(+), 12 delet

[Qemu-devel] [PULL 1/8] target-mips: Don't stop on [d]mtc0 DESAVE/KScratch

2017-08-03 Thread Yongbok Kim
Jarno Cc: Yongbok Kim Reviewed-by: Yongbok Kim Signed-off-by: Yongbok Kim --- target/mips/translate.c | 4 1 file changed, 4 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 51626ae..0bca700 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c

[Qemu-devel] [PULL 7/8] target/mips: Drop redundant gen_io_start/stop()

2017-08-03 Thread Yongbok Kim
ned-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim --- target/mips/translate.c | 8 1 file changed, 8 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index ba6b8f5..bcea2a1 100644 --- a/t

[Qemu-devel] [PULL 8/8] target/mips: Fix RDHWR CC with icount

2017-08-03 Thread Yongbok Kim
ed. Fixes: 2e70f6efa8b9 ("Add instruction counter.") Signed-off-by: James Hogan Cc: Aurelien Jarno Cc: Yongbok Kim Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim --- target/mips/translate.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/target/mips/trans

[Qemu-devel] [PULL 2/8] mips/malta: leave space for the bootmap after the initrd

2017-08-03 Thread Yongbok Kim
nds to 128kiB in memory. Therefore reserve 128kiB after the initrd. Signed-off-by: Aurelien Jarno Tested-by: Yongbok Kim Signed-off-by: Yongbok Kim --- hw/mips/mips_malta.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c in

[Qemu-devel] [PULL 0/8] target-mips queue

2017-08-03 Thread Yongbok Kim
The following changes since commit aaaec6acad7cf97372d48c1b09126a09697519c8: Update version for v2.10.0-rc1 release (2017-08-02 16:36:32 +0100) are available in the git repository at: git://github.com/yongbok/upstream-qemu.git tags/mips-20170803 for you to fetch changes up to d673a68db6963e

[Qemu-devel] [PULL 5/8] target-mips: apply CP0.PageMask before writing into TLB entry

2017-08-03 Thread Yongbok Kim
From: Leon Alrae PFN0 and PFN1 have to be masked out with PageMask_Mask. Signed-off-by: Leon Alrae Reviewed-by: Yongbok Kim [Yongbok Kim: Added commit message] Signed-off-by: Yongbok Kim --- target/mips/op_helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a

Re: [Qemu-devel] [PATCH] target-mips: apply CP0.PageMask before writing into TLB entry

2017-08-03 Thread Yongbok Kim
On 02/08/2017 19:56, Philippe Mathieu-Daudé wrote: > Hi Leon, > > On 08/02/2017 10:58 AM, Yongbok Kim wrote: >> From: Leon Alrae >> >> PFN0 and PFN1 have to be masked out with PageMask_Mask. >> >> Signed-off-by: Leon Alrae >> Reviewed-by: Yon

[Qemu-devel] [PATCH] target-mips: apply CP0.PageMask before writing into TLB entry

2017-08-02 Thread Yongbok Kim
From: Leon Alrae PFN0 and PFN1 have to be masked out with PageMask_Mask. Signed-off-by: Leon Alrae Reviewed-by: Yongbok Kim [Yongbok Kim: Added commit message] Signed-off-by: Yongbok Kim --- target/mips/op_helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [PULL 1/2] hw/mips: load_elf_strerror to report kernel loading failure

2017-07-28 Thread Yongbok Kim
ned-off-by: Aurelien Jarno Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Yongbok Kim --- hw/mips/mips_fulong2e.c | 15 +-- hw/mips/mips_malta.c| 14 -- hw/mips/mips_mipssim.c | 5 +++-- hw/mips/mips_r4k.c | 6 -- 4 fil

[Qemu-devel] [PULL 0/2] target-mips queue

2017-07-28 Thread Yongbok Kim
The following changes since commit 871a0f7ad2b9560c5f7d640125c5be95ca23ca7f: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20170728' into staging (2017-07-28 10:35:02 +0100) are available in the git repository at: git://github.com/yongbok/upstream-qemu.git tags/mips-20170728 for

[Qemu-devel] [PULL 2/2] Revert "elf-loader: warn about invalid endianness"

2017-07-28 Thread Yongbok Kim
big_endian=0. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Aurelien Jarno Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yongbok Kim --- hw/core/loader.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/core/loader.c b/hw/core/loader.c index c17ace0..e5e8cbb 100644 --- a/hw/cor

Re: [Qemu-devel] [PATCH 25/47] MAINTAINERS: add missing MIPS entry

2017-07-28 Thread Yongbok Kim
NTAINERS > @@ -182,6 +182,7 @@ F: include/hw/intc/mips_gic.h > F: include/hw/timer/mips_gictimer.h > F: tests/tcg/mips/ > F: disas/mips.c > +F: default-configs/mips*-softmmu.mak > > Moxie > M: Anthony Green > Acked-by: Yongbok Kim Regards, Yongbok

Re: [Qemu-devel] hw/core/loader-fit.c:105:41: error: expected expression

2017-07-26 Thread Yongbok Kim
On 26/07/2017 05:13, Philippe Mathieu-Daudé wrote: > Hi John, > > On 07/25/2017 07:55 PM, Programmingkid wrote: >> While compiling the mips64el-softmmu target I encountered these errors: >> >>CC hw/display/g364fb.o >> hw/core/loader-fit.c:105:41: error: expected expression >> *

[Qemu-devel] [PULL 11/14] target/mips: Add segmentation control registers

2017-07-20 Thread Yongbok Kim
m to describe the standard legacy layout so they can be used in future patches regardless of whether they are exposed to the guest. Signed-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Reviewed-by: Yongbok Kim Signed-off-by: Yongbok Kim --- target/mips/cpu.h

[Qemu-devel] [PULL 10/14] target/mips: Add an MMU mode for ERL

2017-07-20 Thread Yongbok Kim
don't persist between ERL=0 and ERL=1. Signed-off-by: James Hogan Reviewed-by: Yongbok Kim Cc: Aurelien Jarno [yongbok@imgtec.com: cosmetic changes] Signed-off-by: Yongbok Kim --- target/mips/cpu.h | 17 + target/mips/op_helper.c | 10 ++ 2 files changed, 23

[Qemu-devel] [PULL 13/14] target/mips: Add EVA support to P5600

2017-07-20 Thread Yongbok Kim
From: James Hogan Add the Enhanced Virtual Addressing (EVA) feature to the P5600 core configuration, along with the related Segmentation Control (SC) feature and writable CP0_EBase.WG bit. This allows it to run Malta EVA kernels. Signed-off-by: James Hogan Reviewed-by: Yongbok Kim Cc

[Qemu-devel] [PULL 14/14] target/mips: Enable CP0_EBase.WG on MIPS64 CPUs

2017-07-20 Thread Yongbok Kim
From: James Hogan Enable the CP0_EBase.WG (write gate) on the I6400 and MIPS64R2-generic CPUs. This allows 64-bit guests to run KVM itself, which uses CP0_EBase.WG to point CP0_EBase at XKPhys. Signed-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Reviewed-by: Yongbok Kim Signed-off

[Qemu-devel] [PULL 03/14] target/mips: Weaken TLB flush on UX, SX, KX, ASID changes

2017-07-20 Thread Yongbok Kim
n the tlb flushes in these cases to only flush the QEMU TLB. Signed-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Tested-by: Yongbok Kim Signed-off-by: Yongbok Kim --- target/mips/helper.c| 2 +- target/mips/op_helper.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

[Qemu-devel] [PULL 06/14] target/mips: Decode MIPS32 EVA load & store instructions

2017-07-20 Thread Yongbok Kim
then override the mem_idx used for the operation. Unfortunately some Loongson 2E instructions use overlapping encodings, so we must be careful not to prevent those from being decoded when EVA is absent. Signed-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Reviewed-by: Yongbok Kim Signed

[Qemu-devel] [PULL 12/14] target/mips: Implement segmentation control

2017-07-20 Thread Yongbok Kim
not exposed to the guest). Signed-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Reviewed-by: Yongbok Kim [yongbok@imgtec.com: cosmetic changes] Signed-off-by: Yongbok Kim --- target/mips/helper.c | 191 --- 1 file changed, 152

[Qemu-devel] [PULL 09/14] target/mips: Abstract mmu_idx from hflags

2017-07-20 Thread Yongbok Kim
when a new MMU mode is added. Signed-off-by: James Hogan Reviewed-by: Yongbok Kim Cc: Aurelien Jarno Signed-off-by: Yongbok Kim --- target/mips/cpu.h | 8 +++- target/mips/op_helper.c | 4 ++-- target/mips/translate.c | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff

[Qemu-devel] [PULL 08/14] target/mips: Check memory permissions with mem_idx

2017-07-20 Thread Yongbok Kim
y longer. This should be fine as get_physical_address() only compares against MIPS_HFLAG_UM and MIPS_HFLAG_SM, neither of which should get set by compute_hflags() when MIPS_HFLAG_DM is set. Signed-off-by: James Hogan Reviewed-by: Yongbok Kim Cc: Aurelien Jarno Signed-off-by: Yongbok Kim --- target

[Qemu-devel] [PULL 05/14] target/mips: Prepare loads/stores for EVA

2017-07-20 Thread Yongbok Kim
* helpers used for atomics, and a mem_idx local variable to gen_ld(), gen_st(), and gen_st_cond(). Signed-off-by: James Hogan Reviewed-by: Yongbok Kim Cc: Yongbok Kim Cc: Aurelien Jarno Signed-off-by: Yongbok Kim --- target/mips/translate.c | 77

[Qemu-devel] [PULL 02/14] target/mips: Fix TLBWI shadow flush for EHINV, XI, RI

2017-07-20 Thread Yongbok Kim
fields to TLB entry") Fixes: 9456c2fbcd82 ("target-mips: add TLBINV support") Signed-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Tested-by: Yongbok Kim [yongbok@imgtec.com: cosmetic changes] Signed-off-by: Yongbok Kim --- target/mips/op_helper.c | 12 +++

[Qemu-devel] [PULL 04/14] target/mips: Add CP0_Ebase.WG (write gate) support

2017-07-20 Thread Yongbok Kim
Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Reviewed-by: Yongbok Kim [yongbok@imgtec.com: minor changes] Signed-off-by: Yongbok Kim --- target/mips/cpu.h| 5 - target/mips/helper.c | 14 -- target/mips/machine.c| 6 +++--- target/mips/op_helper.c

[Qemu-devel] [PULL 00/14] target-mips queue

2017-07-20 Thread Yongbok Kim
The following changes since commit 25d0233c1ac6cd14a15fcc834f1de3b179037b1d: Merge remote-tracking branch 'remotes/kraxel/tags/ui-20170720-pull-request' into staging (2017-07-20 16:40:01 +0100) are available in the git repository at: git://github.com/yongbok/upstream-qemu.git tags/mips-2017

[Qemu-devel] [PULL 07/14] target/mips: Decode microMIPS EVA load & store instructions

2017-07-20 Thread Yongbok Kim
From: James Hogan Implement decoding of microMIPS EVA load and store instruction groups in the POOL31C pool. These use the same gen_ld(), gen_st(), gen_st_cond() helpers as the MIPS32 decoding, passing the equivalent MIPS32 opcodes as opc. Signed-off-by: James Hogan Cc: Yongbok Kim Cc

[Qemu-devel] [PULL 01/14] target/mips: Fix MIPS64 MFC0 UserLocal on BE host

2017-07-20 Thread Yongbok Kim
ext32s_tl to sign extend it, as done for various other target_ulong COP0 registers. Fixes: d279279e2b5c ("target-mips: implement UserLocal Register") Signed-off-by: James Hogan Cc: Yongbok Kim Cc: Aurelien Jarno Cc: Petar Jovanovic Reviewed-by: Yongbok Kim Signed-off-by: Y

Re: [Qemu-devel] [PATCH 3/14] target/mips: Weaken TLB flush on UX, SX, KX, ASID changes

2017-07-20 Thread Yongbok Kim
he shadow half of the TLB. > > Therefore weaken the tlb flushes in these cases to only flush the QEMU > TLB. > > Signed-off-by: James Hogan > Cc: Yongbok Kim > Cc: Aurelien Jarno > --- > Changes in v2: > - New patch. > --- > target/mips/helper.c| 2 +- &g

Re: [Qemu-devel] [PATCH 2/14] target/mips: Fix TLBWI shadow flush for EHINV, XI, RI

2017-07-20 Thread Yongbok Kim
n these bits are set. > > Fixes: 2fb58b73746e ("target-mips: add RI and XI fields to TLB entry") > Fixes: 9456c2fbcd82 ("target-mips: add TLBINV support") > Signed-off-by: James Hogan > Cc: Yongbok Kim > Cc: Aurelien Jarno > --- > Changes in v2: > - New

Re: [Qemu-devel] [PATCH 14/14] target/mips: Enable CP0_EBase.WG on MIPS64 CPUs

2017-07-20 Thread Yongbok Kim
On 18/07/2017 12:55, James Hogan wrote: > Enable the CP0_EBase.WG (write gate) on the I6400 and MIPS64R2-generic > CPUs. This allows 64-bit guests to run KVM itself, which uses > CP0_EBase.WG to point CP0_EBase at XKPhys. > > Signed-off-by: James Hogan > Cc: Yongbok Kim &g

Re: [Qemu-devel] [PATCH 12/14] target/mips: Implement segmentation control

2017-07-20 Thread Yongbok Kim
which should be set > up even when the feature is not exposed to the guest). > > Signed-off-by: James Hogan > Cc: Yongbok Kim > Cc: Aurelien Jarno > --- > Changes in v2: > - Use hwaddr instead of target_ulong for physical addresses in > get_seg[ctl]_physical_add

Re: [Qemu-devel] [PATCH 4/14] target/mips: Add CP0_Ebase.WG (write gate) support

2017-07-19 Thread Yongbok Kim
XKPhys, and possibly out of range of KSEG0 and KSEG1. > > Signed-off-by: James Hogan > Cc: Yongbok Kim > Cc: Aurelien Jarno > --- > Changes in v2: > - Fix CP0_EBase.WG to be read only when WG is not set in > CP0_EBase_rw_bitmask, otherwise it will be wrongly probed as p

  1   2   3   4   5   >