[Qemu-devel] [PATCH] linux-user: Update MIPS specific prctl() implementation

2018-11-14 Thread Stefan Markovic
From: Stefan Markovic Perform needed checks before actual prctl() PR_SET_FP_MODE and PR_GET_FP_MODE work based on kernel implementation. Also, update necessary hflags. Signed-off-by: Stefan Markovic --- linux-user/syscall.c | 18 ++ 1 file changed, 18 insertions(+) diff --git

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add Stefan Markovic as a MIPS reviewer

2018-11-16 Thread Stefan Markovic
On 15.11.18. 16:59, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Add Stefan Markovic as a MIPS reviewer. He had several key > contributions to QEMU for MIPS this year. He is a meticulous > person with the ability to think and act on many levels. > > Sign

Re: [Qemu-devel] [PATCH 1/3] target/mips: Add a comment with an overview of CP0 registers

2018-10-15 Thread Stefan Markovic
++ 1 file changed, 109 insertions(+) Reviewed-by: Stefan Markovic diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 28af4d1..cd54073 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -195,6 +195,115 @@ struct CPUMIPSState { #define MSAIR_ProcID8

Re: [Qemu-devel] [PATCH 3/3] mailmap: Add an item for Yongbok Kim

2018-10-15 Thread Stefan Markovic
On 15.10.2018. 12:50, Aleksandar Markovic wrote: From: Aleksandar Markovic Yongbok Kim used two email adresses for QEMU contributions - his company changed its ownership/name. Signed-off-by: Aleksandar Markovic --- .mailmap | 1 + 1 file changed, 1 insertion(+) Reviewed-by: Stefan

Re: [Qemu-devel] [PATCH 1/4] target/mips: Add basic description of MXU ASE

2018-10-16 Thread Stefan Markovic
ON SET + *= Misspelled EXTENSION. Otherwise: Reviewed-by: Stefan Markovic + * + * MXU (full name: MIPS eXtension/enhanced Unit) is an SIMD extension of MIPS32 + * instructions set. It is designed to fit the needs of signal, graphical and + * video processing application

Re: [Qemu-devel] [PATCH 2/4] target/mips: Add assembler mnemonics list for MXU ASE

2018-10-16 Thread Stefan Markovic
* the control register. * + * The notation used in MXU assembler mnemonics: + * + * XRa, XRb, XRa, XRb - MXU registers XRa and XRb duplicated. Did You mean XRc and XRd instead? Otherwise: Reviewed-by: Stefan Markovic + * Rb, Rc, Rd, Rs, Rt - general purpose MIPS registers + * s12

Re: [Qemu-devel] [PATCH 3/4] target/mips: Add organizational chart of MXU ASE

2018-10-16 Thread Stefan Markovic
, 156 insertions(+) Reviewed-by: Stefan Markovic diff --git a/target/mips/translate.c b/target/mips/translate.c index 73d971e..4dfc360 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -1490,6 +1490,162 @@ enum { * Q16SCOP XRa, XRb, XRc, XRdS32M2I XRa, Rb

Re: [Qemu-devel] [PATCH 4/4] target/mips: Add opcode values of MXU ASE

2018-10-16 Thread Stefan Markovic
(+) Reviewed-by: Stefan Markovic diff --git a/target/mips/translate.c b/target/mips/translate.c index 4dfc360..941b546 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -1652,6 +1652,282 @@ enum { * Programming Manual", Ingenic Semiconductor Co, Ltd., 2017 */

Re: [Qemu-devel] [PULL v4 29/46] target/mips: Add emulation of DSP ASE for nanoMIPS - part 1

2018-10-16 Thread Stefan Markovic
On 16.10.18. 16:00, Peter Maydell wrote: On 23 August 2018 at 14:34, Aleksandar Markovic wrote: From: Stefan Markovic Add emulation of DSP ASE instructions for nanoMIPS - part 1. Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Hi

Re: [Qemu-devel] [PATCH 1/2] target/mips: Fix the title of translate.c

2018-10-22 Thread Stefan Markovic
(-) Reviewed-by: Stefan Markovic diff --git a/target/mips/translate.c b/target/mips/translate.c index 74ef160..1afb105 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -1,5 +1,5 @@ /* - * MIPS32 emulation for qemu: main translation routines. + * MIPS emulation for QEMU: main

Re: [Qemu-devel] [PATCH 2/2] target/mips: Fix decoding of ALIGN and DALIGN instructions

2018-10-22 Thread Stefan Markovic
ate.c | 40 1 file changed, 32 insertions(+), 8 deletions(-) Reviewed-by: Stefan Markovic diff --git a/target/mips/translate.c b/target/mips/translate.c index 1afb105..e5db92e 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -463,8 +463,

Re: [Qemu-devel] [PATCH v7 03/20] target/mips: Amend MXU instruction opcodes

2018-10-25 Thread Stefan Markovic
S32SFL XRa, XRb, XRc, XRd, optn2 Q16SARV XRa, XRb, Rb > @@ -1504,7 +1504,7 @@ enum { >* >* ┌─ 00 ─ OPC_MXU_S32MADD >* ├─ 01 ─ OPC_MXU_S32MADDU > - * ├─ 10 ─ > + * ├─ 10 ─ (non-MXU OPC_MULL) OPC_MUL instead of OPC_MU

Re: [Qemu-devel] [PATCH v2 1/3] target/mips: Add nanoMIPS CRC32 instruction pool

2018-10-25 Thread Stefan Markovic
On 25.10.18. 10:49, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Add nanoMIPS CRC32 instruction pool. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 10 ++ > 1 file changed, 10 insertions(+) Reviewed-by: Stefan Ma

Re: [Qemu-devel] [PATCH v2 2/3] target/mips: Implement emulation of nanoMIPS EVA instructions

2018-10-25 Thread Stefan Markovic
gt; +generate_exception_end(ctx, EXCP_RI); > +} > +} > + > +/* > + * This code generates a "reserved instruction" exception if the > + * Config5 EVA bit is NOT set. > + */ > +static inline void check_eva(DisasContext *ctx) > +{ > +if (!unlike

Re: [Qemu-devel] [PATCH v7 04/20] target/mips: Add and integrate MXU decoding engine placeholder

2018-10-26 Thread Stefan Markovic
On 24.10.18. 14:18, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Provide the placeholder and add the invocation logic for MXU > decoding engine. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 8 > 1 file changed, 8 insertions(+) > > diff --git

Re: [Qemu-devel] [PATCH v7 05/20] target/mips: Add MXU decoding engine

2018-10-26 Thread Stefan Markovic
xception_end(ctx, EXCP_RI); > +break; > +} > +} > + > +/* > + * > + * Decode MXU pool01 > + * > + * S32SLT, D16SLT, D16AVG, D16AVGR, Q8AVG, Q8AVGR: > + * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 > + * +--

Re: [Qemu-devel] [PATCH v7 06/20] target/mips: Add bit encoding for MXU accumulate add/sub 1-bit pattern 'aptn1'

2018-10-26 Thread Stefan Markovic
On 24.10.18. 14:18, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Add bit encoding for MXU accumulate add/subtract 1-bit pattern > 'aptn1'. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 6 ++ > 1 file changed,

Re: [Qemu-devel] [PATCH v7 08/20] target/mips: Add bit encoding for MXU execute add/sub pattern 'eptn2'

2018-10-26 Thread Stefan Markovic
On 24.10.18. 14:18, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Add bit encoding for MXU execute 2-bit add/subtract pattern 'eptn2'. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 6 ++ > 1 file changed, 6 i

Re: [Qemu-devel] [PATCH v7 13/20] target/mips: Move MUL, S32M2I, S32I2M handling out of main MXU switch

2018-10-26 Thread Stefan Markovic
On 24.10.18. 14:18, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Move MUL, S32M2I, S32I2M handling out of switch. These are all > instructions that do not depend on MXU_EN flag of MXU_CR. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 41

Re: [Qemu-devel] [PATCH v7 19/20] target/mips: Move MXU_EN check one level higher

2018-10-26 Thread Stefan Markovic
t/mips/translate.c | 509 > ++-- > 1 file changed, 238 insertions(+), 271 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target/mips/translate.c > index 61c1662..3620ae5 100644 > --- a/target/mips/translate.c > +++ b/target/mips/translate

Re: [Qemu-devel] [PATCH v7 20/20] target/mips: Amend MXU ASE overview note

2018-10-26 Thread Stefan Markovic
et/mips/translate.c | 84 > +++-- > 1 file changed, 74 insertions(+), 10 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target/mips/translate.c > index 3620ae5..9bd5f27 100644 > --- a/target/mips/translate.c > +

[Qemu-devel] [PATCH 0/6] target/mips: Add support for prctl() PR_GET_FP_MODE and PR_SET_FP_MODE

2018-10-26 Thread Stefan Markovic
From: Stefan Markovic This series includes support for prctl() PR_GET_FP_MODE and PR_SET_FP_MODE. This requires extracting MIPS.abiflags section from ELF file and fp_abi value handling. Stefan Markovic (6): Define MIPS_ABI_FP_UNKNOWN macro Extend image_info struct with MIPS specific fp_abi

[Qemu-devel] [PATCH 2/6] Extend image_info struct with MIPS specific fp_abi and interp_fp_abi fields

2018-10-26 Thread Stefan Markovic
From: Stefan Markovic Signed-off-by: Stefan Markovic --- linux-user/qemu.h | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 1beb6a2..a752c1c 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -61,6 +61,10 @@ struct image_info

[Qemu-devel] [PATCH 5/6] Determine the desired FPU mode

2018-10-26 Thread Stefan Markovic
From: Stefan Markovic Floating-point mode is calculated from MIPS.abiflags FP ABI value (based on kernel implementation). Illegal combinations are rejected. Signed-off-by: Stefan Markovic --- linux-user/mips/cpu_loop.c | 75 ++ 1 file changed, 75

[Qemu-devel] [PATCH 4/6] Read and set FP ABI value from MIPS abiflags

2018-10-26 Thread Stefan Markovic
From: Stefan Markovic Signed-off-by: Stefan Markovic --- linux-user/elfload.c | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 5881233..5bccd2e 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -2396,6 +2396,7 @@ static

[Qemu-devel] [PATCH 3/6] Extract MIPS abiflags from ELF file

2018-10-26 Thread Stefan Markovic
From: Stefan Markovic Signed-off-by: Stefan Markovic --- linux-user/elfload.c | 33 + 1 file changed, 33 insertions(+) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 055f6a9..5881233 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c

[Qemu-devel] [PATCH 6/6] Add prctl() PR_SET_FP_MODE and PR_GET_FP_MODE implementations

2018-10-26 Thread Stefan Markovic
From: Stefan Markovic Signed-off-by: Stefan Markovic --- linux-user/mips/target_syscall.h | 2 ++ linux-user/mips64/target_syscall.h | 2 ++ linux-user/syscall.c | 62 +++--- 3 files changed, 62 insertions(+), 4 deletions(-) diff --git a/linux

[Qemu-devel] [PATCH 1/6] Define MIPS_ABI_FP_UNKNOWN macro

2018-10-26 Thread Stefan Markovic
From: Stefan Markovic Signed-off-by: Stefan Markovic --- include/elf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/elf.h b/include/elf.h index 5f45f9b..c151164 100644 --- a/include/elf.h +++ b/include/elf.h @@ -87,6 +87,8 @@ typedef int64_t Elf64_Sxword; #define

Re: [Qemu-devel] [PATCH v7 04/20] target/mips: Add and integrate MXU decoding engine placeholder

2018-10-29 Thread Stefan Markovic
In that case, I guess this should be OK for now, as MXU support is initiated by Craig and this will be an easy add-on when he provide necessary information. Reviewed-by: Stefan Markovic On 28.10.18. 19:39, Aleksandar Markovic wrote: >> Subject: Re: [PATCH v7 04/20] target/mips: A

Re: [Qemu-devel] [PATCH v7 13/20] target/mips: Move MUL, S32M2I, S32I2M handling out of main MXU switch

2018-10-29 Thread Stefan Markovic
Following the patch 04/20 discussion: Reviewed-by: Stefan Markovic On 26.10.18. 11:45, Stefan Markovic wrote: > > On 24.10.18. 14:18, Aleksandar Markovic wrote: >> From: Aleksandar Markovic >> >> Move MUL, S32M2I, S32I2M handling out of switch. These are all >

Re: [Qemu-devel] [PATCH] target/mips: Add two missing breaks for NM_LLWPE and NM_SCWPE decoder cases

2018-10-29 Thread Stefan Markovic
On 29.10.18. 12:15, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Coverity found two fallthroughs that lack break statements. Fix them. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 2 ++ > 1 file changed, 2 insertions(+) Revi

Re: [Qemu-devel] ?==?utf-8?q? ?==?utf-8?q? [PATCH 5/6] Determine the desired FPU mode

2018-10-29 Thread Stefan Markovic
: Friday, October 26, 2018 20:12 CEST From: Peter Maydell To: Stefan Markovic CC: QEMU Developers , Petar Jovanovic , Riku Voipio , Aleksandar Markovic , Aurelien Jarno , Laurent Vivier References: <1540563667-23300-1-git-send-email-stefan.marko...@rt-rk.com> <1540563667-23300-6-git-s

[Qemu-devel] [PATCH v2 6/6] Add prctl() PR_SET_FP_MODE and PR_GET_FP_MODE implementations

2018-10-29 Thread Stefan Markovic
From: Stefan Markovic Implement MIPS specific prctl() PR_SET_FP_MODE and PR_GET_FP_MODE emulation. Reviewed-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/mips/target_syscall.h | 2 ++ linux-user/mips64/target_syscall.h | 2 ++ linux-user/syscall.c

[Qemu-devel] [PATCH v2 5/6] Determine the desired FPU mode

2018-10-29 Thread Stefan Markovic
From: Stefan Markovic Floating-point mode is calculated from MIPS.abiflags FP ABI value (based on kernel implementation). Illegal combinations are rejected. Reviewed-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/mips/cpu_loop.c | 75

[Qemu-devel] [PATCH v2 1/6] Define MIPS_ABI_FP_UNKNOWN macro

2018-10-29 Thread Stefan Markovic
From: Stefan Markovic Add MIPS_ABI_FP_UNKNOWN as QEMU internal value to represent unknown fp_abi (based on kernel mips/include/asm/elf.h definition) Reviewed-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- include/elf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include

[Qemu-devel] [PATCH v2 2/6] Extend image_info struct with MIPS specific fp_abi and interp_fp_abi fields

2018-10-29 Thread Stefan Markovic
From: Stefan Markovic Add MIPS specific image_info struct fields fp_abi and interp_fp_abi to store executable and interpreter fp_abi values (based on kernel struct arch_elf_state in mips/include/asm/elf.h). Reviewed-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/qemu.h

[Qemu-devel] [PATCH v2 0/6] target/mips: Add support for prctl() PR_GET_FP_MODE and PR_SET_FP_MODE

2018-10-29 Thread Stefan Markovic
From: Stefan Markovic This series includes support for prctl() PR_GET_FP_MODE and PR_SET_FP_MODE. This requires extracting MIPS.abiflags section from ELF file and fp_abi value handling. v1->v2: - added commit messages - fixed exit() error codes and appropriate exit messages prin

[Qemu-devel] [PATCH v2 3/6] Extract MIPS abiflags from ELF file

2018-10-29 Thread Stefan Markovic
From: Stefan Markovic Read MIPS.abiflags section from ELF file into Mips_elf_abiflags_v0 struct. Reviewed-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/elfload.c | 33 + 1 file changed, 33 insertions(+) diff --git a/linux-user

[Qemu-devel] [PATCH v2 4/6] Read and set FP ABI value from MIPS abiflags

2018-10-29 Thread Stefan Markovic
From: Stefan Markovic Set fp_abi and interp_fp_abi values to current fp_abi value read from MIPS.abiflags. Reviewed-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/elfload.c | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/elfload.c b/linux-user

Re: [Qemu-devel] [PATCH v2 1/5] target/mips: Rename MMI-related masks

2018-10-30 Thread Stefan Markovic
On 30.10.18. 12:36, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Rename MMI-related masks. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) Revi

Re: [Qemu-devel] [PATCH v2 2/5] target/mips: Rename MMI-related opcodes

2018-10-30 Thread Stefan Markovic
nsertions(+), 235 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target/mips/translate.c > index e38d50d..4b008d8 100644 > --- a/target/mips/translate.c > +++ b/target/mips/translate.c > @@ -2099,7 +2099,7 @@ enum { >* The T

Re: [Qemu-devel] [PATCH v2 3/5] target/mips: Rename MMI-related functions

2018-10-30 Thread Stefan Markovic
On 30.10.18. 12:36, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Rename MMI-related functions. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 32 > 1 file changed, 16 insertions(+), 16 deletions(

Re: [Qemu-devel] [PATCH for-3.1 05/25] MAINTAINERS: Add missing entries for the Jazz machine

2018-11-26 Thread Stefan Markovic
On 25.11.18. 21:49, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Stefan Markovic > diff --git a/MAINTAINERS b/MAINTAINERS > index 007f89f126..4e396cbe71 100644 > ---

Re: [Qemu-devel] [PATCH for-3.1 07/25] MAINTAINERS: Add a missing entry for the Fulong 2E machine

2018-11-26 Thread Stefan Markovic
On 25.11.18. 21:49, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Stefan Markovic > diff --git a/MAINTAINERS b/MAINTAINERS > index aa17e9bbd3..81a22b2ccf 100644 > ---

[Qemu-devel] [PATCH 0/2] qemu-doc: Update MIPS/nanoMIPS info

2018-11-28 Thread Stefan Markovic
From: Stefan Markovic Update QEMU documentation with nanoMIPS ISA info and add list of QEMU supported MIPS/nanoMIPS CPU models. Stefan Markovic (2): qemu-doc: Add nanoMIPS ISA information docs/qemu-cpu-models: Add MIPS/nanoMIPS QEMU supported CPU models docs/qemu-cpu-models.texi | 163

[Qemu-devel] [PATCH 1/2] qemu-doc: Add nanoMIPS ISA information

2018-11-28 Thread Stefan Markovic
From: Stefan Markovic Add nanoMIPS information in qemu-doc.texi with example of usage included. Signed-off-by: Stefan Markovic --- qemu-doc.texi | 29 + 1 file changed, 29 insertions(+) diff --git a/qemu-doc.texi b/qemu-doc.texi index f7ad1df..6ef593d 100644 --- a

[Qemu-devel] [PATCH 2/2] docs/qemu-cpu-models: Add MIPS/nanoMIPS QEMU supported CPU models

2018-11-28 Thread Stefan Markovic
From: Stefan Markovic Add list of supported and preferred CPU models for MIPS32, MIPS64 and nanoMIPS hosts. Signed-off-by: Stefan Markovic --- docs/qemu-cpu-models.texi | 163 +- 1 file changed, 161 insertions(+), 2 deletions(-) diff --git a/docs

Re: [Qemu-devel] [PATCH 1/2] qemu-doc: Add nanoMIPS ISA information

2018-11-29 Thread Stefan Markovic
efan, > > On 28/11/18 14:43, Stefan Markovic wrote: >> From: Stefan Markovic >> >> Add nanoMIPS information in qemu-doc.texi with example of usage >> included. >> >> Signed-off-by: Stefan Markovic >> --- >> qemu-doc.texi | 29 ++

Re: [Qemu-devel] [PATCH 1/2] qemu-doc: Add nanoMIPS ISA information

2018-12-03 Thread Stefan Markovic
Of course. Investigation is in progress. Thanks, Stefan On 29.11.18. 11:23, Peter Maydell wrote: > On Thu, 29 Nov 2018 at 10:18, Stefan Markovic wrote: >> I'll investigate further running with --enable-debug option to fix this >> issue. >> >> In the meantim

Re: [Qemu-devel] [PATCH 2/2] avoid TABs in files that only contain a few

2018-12-17 Thread Stefan Markovic
ensa/core-test_kc705_be/xtensa-modules.inc.c > tests/tcg/cris/check_abs.c > tests/tcg/cris/check_addc.c > tests/tcg/cris/check_addcm.c > tests/tcg/cris/check_addoq.c > tests/tcg/cris/check_bound.c > tests/tcg/cris/check_ftag.c > tes

Re: [Qemu-devel] [PATCH v2 1/5] disas: nanoMIPS: Fix preamble text

2018-12-18 Thread Stefan Markovic
+--- > 2 files changed, 8 insertions(+), 6 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp > index 1238c2ff33..f9ef0a25f4 100644 > --- a/disas/nanomips.cpp > +++ b/disas/nanomips.cpp > @@ -1,13 +1,13 @@ > /* >* Sour

Re: [Qemu-devel] [PATCH v2 3/5] disas: nanoMIPS: Fix a function misnomer

2018-12-18 Thread Stefan Markovic
- > disas/nanomips.cpp | 264 ++--- > disas/nanomips.h | 2 +- > 2 files changed, 133 insertions(+), 133 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp > index 935c2dee3c..cfad1

Re: [Qemu-devel] [PATCH v2 5/5] disas: nanoMIPS: Name some function in a more descriptive way

2018-12-18 Thread Stefan Markovic
disas/nanomips.h | 32 ++--- > 2 files changed, 72 insertions(+), 72 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp > index 9e876305f1..477df84d93 100644 > --- a/disas/nanomips.cpp > +++ b/disas/nanomips.cpp > @@ -683,7

Re: [Qemu-devel] [PATCH v2 2/5] disas: nanoMIPS: Remove functions that are not used

2018-12-18 Thread Stefan Markovic
> disas/nanomips.cpp | 208 - > disas/nanomips.h | 25 -- > 2 files changed, 233 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp > index f9ef0a25f4..935c2dee3c 100644 > ---

Re: [Qemu-devel] [PATCH 1/6] target/mips: MXU: Add missing opcodes/decoding for LX* instructions

2018-12-18 Thread Stefan Markovic
t; be now complete. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 140 +--- > 1 file changed, 102 insertions(+), 38 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target

Re: [Qemu-devel] [PATCH 4/6] target/mips: MXU: Add handlers for logic instructions

2018-12-18 Thread Stefan Markovic
d, 170 insertions(+), 12 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target/mips/translate.c > index e3a5a73e59..c74a831a17 100644 > --- a/target/mips/translate.c > +++ b/target/mips/translate.c > @@ -24649,6 +24649,172 @@ static void gen_

Re: [Qemu-devel] [PATCH 3/6] target/mips: MXU: Improve textual description

2018-12-18 Thread Stefan Markovic
et/mips/translate.c | 74 - > 1 file changed, 44 insertions(+), 30 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target/mips/translate.c > index 74d16ce52e..e3a5a73e59 100644 > --- a/target/mips/translate.c > +++ b/target/mips/tra

Re: [Qemu-devel] [PATCH 5/6] target/mips: MXU: Add handlers for max/min instructions

2018-12-18 Thread Stefan Markovic
d, 335 insertions(+), 21 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target/mips/translate.c > index c74a831a17..339de8c32b 100644 > --- a/target/mips/translate.c > +++ b/target/mips/translate.c > @@ -24815,6 +24815,338 @@ stati

Re: [Qemu-devel] [PATCH 6/6] target/mips: MXU: Add handlers for an align instruction

2018-12-18 Thread Stefan Markovic
ed, 194 insertions(+), 3 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target/mips/translate.c > index 339de8c32b..96905b78ac 100644 > --- a/target/mips/translate.c > +++ b/target/mips/translate.c > @@ -25147,6 +25147,199 @@ static voi

Re: [Qemu-devel] [PATCH 2/8] target/mips: Add preprocessor constants for 32 major CP0 registers

2019-01-17 Thread Stefan Markovic
On 3.1.19. 17:34, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Add preprocessor constants for 32 major CP0 registers. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/cpu.h | 32 > 1 file changed, 32 insertions(

Re: [Qemu-devel] [PATCH 1/8] target/mips: Move comment containing summary of CP0 registers

2019-01-17 Thread Stefan Markovic
-- > target/mips/cpu.h | 165 > +++--- > 1 file changed, 84 insertions(+), 81 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/cpu.h b/target/mips/cpu.h > index 03c03fd..6c2a7e4 100644 > --- a/t

Re: [Qemu-devel] [PATCH 4/8] target/mips: Add fields for SAARI and SAAR CP0 registers

2019-01-17 Thread Stefan Markovic
+-- > 2 files changed, 12 insertions(+), 4 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/cpu.h b/target/mips/cpu.h > index b095422..1c2c682 100644 > --- a/target/mips/cpu.h > +++ b/target/mips/cpu.h > @@ -164,8 +164,8 @@ typedef struct mips_de

Re: [Qemu-devel] [PATCH 3/8] target/mips: Use preprocessor constants for 32 major CP0 registers

2019-01-17 Thread Stefan Markovic
> 1 file changed, 136 insertions(+), 136 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/target/mips/translate.c b/target/mips/translate.c > index e9c23a5..6af292f 100644 > --- a/target/mips/translate.c > +++ b/target/mips/translate.c > @@ -6476,7 +6476,7 @@ static void

Re: [Qemu-devel] [PATCH 8/8] target/mips: Update ITU to handle bus errors

2019-01-17 Thread Stefan Markovic
On 3.1.19. 17:34, Aleksandar Markovic wrote: > From: Yongbok Kim > > Update ITU to handle bus errors. > > Signed-off-by: Yongbok Kim > Signed-off-by: Aleksandar Markovic > --- > hw/misc/mips_itu.c | 22 ++ > 1 file changed, 22 insertions(+) R

Re: [Qemu-devel] [PATCH 5/8] target/mips: Provide R/W access to SAARI and SAAR CP0 registers

2019-01-17 Thread Stefan Markovic
| 6 + > target/mips/internal.h | 1 + > target/mips/op_helper.c | 50 + > target/mips/translate.c | 66 > ++--- > 5 files changed, 120 insertions(+), 4 deletions(-) Reviewed-by: Stefan Markovic

Re: [Qemu-devel] [PATCH 6/8] target/mips: Add field and R/W access to ITU control register ICR0

2019-01-17 Thread Stefan Markovic
ude/hw/misc/mips_itu.h | 4 > 2 files changed, 25 insertions(+), 1 deletion(-) Reviewed-by: Stefan Markovic > diff --git a/hw/misc/mips_itu.c b/hw/misc/mips_itu.c > index 43bbec4..4801958 100644 > --- a/hw/misc/mips_itu.c > +++ b/hw/misc/mips_itu.c > @@ -55,9 +55,17 @@ t

Re: [Qemu-devel] [PATCH 7/8] target/mips: Update ITU to utilize SAARI and SAAR CP0 registers

2019-01-17 Thread Stefan Markovic
isc/mips_itu.c | 28 ++-- > include/hw/misc/mips_itu.h | 4 > target/mips/cpu.h | 5 + > target/mips/op_helper.c| 14 ++ > 5 files changed, 53 insertions(+), 6 deletions(-) Reviewed-by: Stefan Markovic > diff --git a/hw/

Re: [Qemu-devel] [PATCH v3 5/8] target/mips: Add CP0 BadInstrX register

2018-07-05 Thread Stefan Markovic
default: Regards, Stefan From: Philippe Mathieu-Daudé on behalf of Philippe Mathieu-Daudé Sent: Wednesday, July 4, 2018 10:31:27 PM To: Aleksandar Markovic; qemu-devel@nongnu.org; Richard Henderson Cc: aurel...@aurel32.net; Aleksandar Markovic; Stefan Markov

Re: [Qemu-devel] [PATCH v3 5/8] target/mips: Add CP0 BadInstrX register

2018-07-06 Thread Stefan Markovic
July 5, 2018 5:13:42 PM To: Stefan Markovic; Aleksandar Markovic; qemu-devel@nongnu.org; Richard Henderson Cc: Petar Jovanovic; Aleksandar Markovic; aurel...@aurel32.net; Paul Burton Subject: Re: [Qemu-devel] [PATCH v3 5/8] target/mips: Add CP0 BadInstrX register On 07/05/2018 10:27 AM, Stefan Mar

Re: [Qemu-devel] [PATCH v2 32/33] gdbstub: Add XML support for GDB for nanoMIPS

2018-07-13 Thread Stefan Markovic
c: f4...@amsat.org; aurel...@aurel32.net; Stefan Markovic; Petar Jovanovic; Paul Burton Subject: Re: [PATCH v2 32/33] gdbstub: Add XML support for GDB for nanoMIPS > Subject: [PATCH v2 32/33] gdbstub: Add XML support for GDB for nanoMIPS > > From: Stefan Markovic > > Add XML support files

[Qemu-devel] [PATCH v3 01/40] target/mips: Add preprocessor constants for nanoMIPS

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Add ISA_NANOMIPS32 and CPU_NANOMIPS32 preprocessor constants. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/mips-defs.h | 4 1 file changed, 4 insertions(+) diff

[Qemu-devel] [PATCH v6 04/11] target/mips: Avoid case statements formulated by ranges

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Remove "range style" case statements to make code analysis easier. This is needed also for some upcoming nanoMIPS-related refactorings. Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daudé --- target/mips/translate.c | 249 +

[Qemu-devel] [PATCH v3 27/40] target/mips: Adjust behavior of Config3's ISAOnExc bit for nanoMIPS

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Config3.ISAOnExc is read only in nanoMIPS. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/op_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/mips/op_helper.c b/target/mips

[Qemu-devel] [PATCH v6 06/11] target/mips: Don't update BadVAddr register in Debug Mode

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim BadVAddr should not be updated if (env->hflags & MIPS_HFLAG_DM) is set. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daudé --- target/mips/helper.c| 4 +++- target/mips/op_helper.c | 12 +--- 2 files changed, 12 in

[Qemu-devel] [PATCH v3 11/40] target/mips: Add emulation of nanoMIPS 48-bit instructions

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of LI48, ADDIU48, ADDIUGP48, ADDIUPC48, LWPC48, and SWPC48 instructions. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Reviewed-by: Aleksandar Markovic --- target/mips/translate.c | 66

[Qemu-devel] [PATCH v6 08/11] elf: Remove duplicate preprocessor constant definition

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Remove duplicate preprocessor constant definition for EF_MIPS_ARCH. The duplicate was introduced in commit 45506bdd. Signed-off-by: Aleksandar Markovic --- include/elf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/elf.h b/include/elf.h index 934dbbd..c

[Qemu-devel] [PATCH v6 10/11] linux-user: Update MIPS syscall numbers up to kernel 4.18 headers

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Synchronize content of linux-user/mips/syscall_nr.h and linux-user/mips64/syscall_nr.h with Linux kernel 4.18 headers. This adds 7 new syscall numbers, the last being NR_statx. Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/mips

[Qemu-devel] [PATCH v6 00/11] Mips maintenance and misc fixes and improvements

2018-07-19 Thread Stefan Markovic
MIPS machine variants linux-user: Update MIPS syscall numbers up to kernel 4.18 headers Aleksandar Rikalo (1): linux-user: Add availability control to some syscalls Stefan Markovic (1): target/mips: Add CP0 BadInstrX register Yongbok Kim (2): target/mips: Don't update BadVAddr regist

[Qemu-devel] [PATCH v3 25/40] target/mips: Add updating CP0 BadInstrX register for nanoMIPs only

2018-07-19 Thread Stefan Markovic
From: Stefan Markovic Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/helper.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/mips/helper.c b/target/mips/helper.c index 5299f21..9535131 100644 --- a/target/mips

[Qemu-devel] [PATCH v3 12/40] target/mips: Add emulation of nanoMIPS FP instructions

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of basic floating point arithmetic for nanoMIPS. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Reviewed-by: Aleksandar Markovic --- target/mips/translate.c | 300

[Qemu-devel] [PATCH v6 09/11] elf: Add ELF flags for MIPS machine variants

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Add MIPS machine variants ELF flags so that the emulation behavior can be adjusted if needed. Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- include/elf.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include

[Qemu-devel] [PATCH v3 13/40] target/mips: Add emulation of misc nanoMIPS instructions (pool32a0)

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of nanoMIPS instructions that are situated in pool32a0. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Reviewed-by: Aleksandar Markovic --- target/mips/translate.c | 190

[Qemu-devel] [PATCH v3 15/40] target/mips: Add emulation of misc nanoMIPS instructions (pool p_lsx)

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of nanoMIPS instructions situated in pool p_lsx, and emulation of LSA instruction as well. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Reviewed-by: Aleksandar Markovic --- target/mips/translate.c | 139

[Qemu-devel] [PATCH v3 07/40] target/mips: Add emulation of nanoMIPS 16-bit load and store instructions

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of LWXS16, LB16, SB16, LBU16, LH16, SH16, LHU16, LW16, LWSP16, LW4X4, SW4X4, LWGP16, SWSP16, SW16, and SWGP16 instructions. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 114

[Qemu-devel] [PATCH v6 01/11] target/mips: Update maintainer's email addresses

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Update email addresses of Aleksandar Markovic and Paul Burton in the MAINTAINERS file. Also, add corresponding items in the .mailmap file. Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daudé --- .mailmap| 7 +-- MAINTAINERS | 9 + 2

[Qemu-devel] [PATCH v6 07/11] target/mips: Check ELPA flag only in some cases of MFHC0 and MTHC0

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim MFHC0 and MTHC0 used to handle EntryLo0 and EntryLo1 registers only, and placing ELPA flag checks before switch statement were technically correct. However, after adding handling more registers, these checks should be moved to act only in cases of handling EntryLo0 and EntryLo1.

[Qemu-devel] [PATCH v6 11/11] linux-user: Add availability control to some syscalls

2018-07-19 Thread Stefan Markovic
From: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/strace.c | 14 +- linux-user/syscall.c | 25 + 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c

[Qemu-devel] [PATCH v6 03/11] target/mips: Update some CP0 registers bit definitions

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Update CP0 registers Config0, Config1, Config2, Config3, Config4, and Config5 bit definitions. Some of these bits will be utilized by upcoming nanoMIPS changes. Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daudé --- target/mips/cpu.h | 157 ++

[Qemu-devel] [PATCH v3 03/40] target/mips: Add nanoMIPS DSP ASE opcodes

2018-07-19 Thread Stefan Markovic
From: Stefan Markovic Add nanoMIPS opcodes for DSP ASE instruction pools and instructions. Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 144 1 file changed, 144 insertions(+) diff --git a

[Qemu-devel] [PATCH v3 00/40] Add nanoMIPS support to QEMU

2018-07-19 Thread Stefan Markovic
arget/mips: Implement emulation of nanoMIPS ROTX instruction target/mips: Add handling of branch delay slots for nanoMIPS mips_malta: Add basic nanoMIPS boot code for MIPS' Malta Paul Burton (1): mips_malta: Setup GT64120 BARs in nanoMIPS bootloader Stefan Markovic (8): target/mips: Ad

[Qemu-devel] [PATCH v6 02/11] target/mips: Workaround for checkpatch.pl hanging on msa_helper.c

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic If checkpatch.pl is applied (using switch "-f") on file target/mips/msa_helper.c, it will hang. This is a workaround by correcting the source file. The workaround is found by partial deleting and undeleting of the code in msa_helper.c in binary search fashion. The bug

[Qemu-devel] [PATCH v3 06/40] target/mips: Add emulation of misc nanoMIPS 16-bit instructions

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of misc nanoMIPS 16-bit instructions from instruction pools P16, P16.BR, P16.BRI, P16.4X4 and other related pools. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 258

[Qemu-devel] [PATCH v3 18/40] target/mips: Add emulation of nanoMIPS 32-bit load and store instructions

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of various nanoMIPS load and store instructions. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Reviewed-by: Aleksandar Markovic --- target/mips/translate.c | 271

[Qemu-devel] [PATCH v3 05/40] target/mips: Add nanoMIPS decoding and extraction utilities

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add some basic utility functions and macros for nanoMIPS decoding engine. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 35 +++ 1 file changed, 35 insertions

[Qemu-devel] [PATCH v3 04/40] target/mips: Add decode_nanomips_opc() function

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add empty body and invocation of decode_nanomips_opc() if the bit ISA_NANOMIPS32 is set in env->insn_flags. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 22 -- 1 file chan

[Qemu-devel] [PATCH v3 34/40] linux-user: Don't check FCR31_NAN2008 bit for nanoMIPS

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/mips/cpu_loop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/mips/cpu_loop.c b/linux-user/mips/cpu_loop.c index 1d3dc9e..c9c20cf 100644 --- a/linux-user/mips

[Qemu-devel] [PATCH v3 22/40] target/mips: Add handling of branch delay slots for nanoMIPS

2018-07-19 Thread Stefan Markovic
From: Matthew Fortune ISA mode bit (LSB of address) is no longer required but is also masked to allow for tools transition. The flag has_isa_mode has the key role in the implementation. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target

[Qemu-devel] [PATCH v3 19/40] target/mips: Add emulation of nanoMIPS branch instructions

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of various flavors of nanoMIPS branch instructions. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Reviewed-by: Aleksandar Markovic --- target/mips/translate.c | 277

[Qemu-devel] [PATCH v3 08/40] target/mips: Add emulation of nanoMIPS 16-bit logic instructions

2018-07-19 Thread Stefan Markovic
From: Yongbok Kim Add emulation of NOT16, AND16, XOR16, OR16 instructions. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 22 ++ 1 file changed, 22 insertions

[Qemu-devel] [PATCH v3 32/40] elf: Add nanoMIPS specific variations in ELF header fields

2018-07-19 Thread Stefan Markovic
From: Aleksandar Markovic Add nanoMIPS-related values in ELF header fields as specified in nanoMIPS' "ELF ABI Supplement". Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- include/elf.h | 20 1 file changed, 20 insertions(+) diff

  1   2   3   >