[PATCH v2 0/1] tricore: fixed faulty conditions for extr and imask

2021-02-11 Thread David Brenken
From: Andreas Konopik Hello together, we have fixed a few conditions leading to incorrect intermediate code generation. Andreas Konopik (1): tricore: fixed faulty conditions for extr and imask target/tricore/translate.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) --

[PATCH v2 1/1] tricore: fixed faulty conditions for extr and imask

2021-02-11 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: Georg Hofstetter Signed-off-by: David Brenken --- target/tricore/translate.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/tricore/translate.c b/target/tricore/translate.c index

[PATCH 0/1] tricore: fixed faulty conditions for extr and imask

2021-02-10 Thread David Brenken
From: Andreas Konopik Hello together, we have fixed a few conditions leading to incorrect intermediate code generation. RCPW_IMASK, RRPW_EXTR, RRPW_EXTR_U and RRPW_IMASK invoke undefined behavior for "pos + width > 32", which is also checked in tcg_gen_extract_tl(). RRRW_EXTR_U invokes

[PATCH 1/1] tricore: fixed faulty conditions for extr and imask

2021-02-10 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: Georg Hofstetter Signed-off-by: David Brenken --- target/tricore/translate.c | 37 ++--- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/target/tricore/translate.c b/target

[PATCH v5 1/1] tricore: added triboard with tc27x_soc

2020-11-09 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- default-configs/devices/tricore-softmmu.mak | 2 +- hw/tricore/Kconfig | 8 + hw

[PATCH v5 0/1] tricore: added triboard with tc27x_soc

2020-11-09 Thread David Brenken
From: Andreas Konopik Hello everyone, this patch adds the AURIX TC277 D-Step TriBoard as QEMU machine (-M AURIX_TriBoard_TC277D). Memory maps are implemented according to the "AURIX TC27x D-Step User's Manual V2.2 2014-12". AURIX memory layouts are specified by the processor, that is why this

[PATCH v4 1/1] tricore: added triboard with tc27x_soc

2020-07-06 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- hw/tricore/Kconfig | 8 ++ hw/tricore/Makefile.objs | 2 + hw/tricore/tc27x_soc.c

[PATCH v4 0/1] tricore: added triboard with tc27x_soc

2020-07-06 Thread David Brenken
From: Andreas Konopik Hello everyone, this patch adds the AURIX TC277 D-Step TriBoard as QEMU machine (-M AURIX_TriBoard_TC277D). Memory maps are implemented according to the "AURIX TC27x D-Step User's Manual V2.2 2014-12". AURIX memory layouts are specified by the processor, that is why this

[PATCH v3 1/1] tricore: added triboard with tc27x_soc

2020-06-22 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- hw/tricore/Kconfig | 8 ++ hw/tricore/Makefile.objs | 2 + hw/tricore/tc27x_soc.c

[PATCH v3 0/1] tricore: added triboard with tc27x_soc

2020-06-22 Thread David Brenken
From: Andreas Konopik Hello everyone, this patch adds the AURIX TC277 D-Step TriBoard as QEMU machine (-M AURIX_TriBoard_TC277D). Memory maps are implemented according to the "AURIX TC27x D-Step User's Manual V2.2 2014-12". AURIX memory layouts are specified by the processor, that is why this

[PATCH v2 1/1] tricore: added triboard with tc27x_soc

2020-06-09 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- hw/tricore/Kconfig | 8 ++ hw/tricore/Makefile.objs | 2 + hw/tricore/tc27x_soc.c

[PATCH v2 0/1] tricore: added AURIX TC277 D-Step TriBoard

2020-06-09 Thread David Brenken
From: Andreas Konopik Hello everyone, this patch adds the AURIX TC277 D-Step TriBoard as QEMU machine (-M AURIX_TriBoard_TC277D). Memory maps are implemented according to the the "AURIX TC27x D-Step User's Manual V2.2 2014-12". AURIX memory layouts are specified by the processor, that is why

[PATCH 1/1] tricore: added AURIX TC277 D-Step TriBoard

2020-05-11 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- hw/tricore/Makefile.objs | 1 + hw/tricore/aurix_triboard_tc277d.c | 240

[PATCH 0/1] tricore: added AURIX TC277 D-Step TriBoard

2020-05-11 Thread David Brenken
From: Andreas Konopik Hello everyone, this patch adds the AURIX TC277 D-Step TriBoard as QEMU machine (-M AURIX_TriBoard_TC277D). Memory maps are implemented according to the the "AURIX TC27x D-Step User's Manual V2.2 2014-12". AURIX memory layouts normally are specified by the processor, so

[Qemu-devel] [PATCH v3 0/5] tricore: adding new instructions and fixing

2019-06-24 Thread David Brenken
From: David Brenken Hello everyone, as discussed here is the third version of the patchset. - We finalized the implementation of QSEED according to Bastians annotations. - We do only sync ctx.hflags with tb->flags. Best regards David Andreas Konopik (1): tricore: add QSEED instruct

[Qemu-devel] [PATCH v3 3/5] tricore: fix RRPW_INSERT instruction

2019-06-24 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski Reviewed-by: Bastian Koppelmann --- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[Qemu-devel] [PATCH v3 1/5] tricore: add FTOIZ instruction

2019-06-24 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski Reviewed-by: Bastian Koppelmann --- target/tricore/fpu_helper.c | 25 + target/tricore

[Qemu-devel] [PATCH v3 4/5] tricore: sync ctx.hflags with tb->flags

2019-06-24 Thread David Brenken
From: Georg Hofstetter Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/tricore/translate.c b

[Qemu-devel] [PATCH v3 5/5] tricore: add QSEED instruction

2019-06-24 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/fpu_helper.c | 84 + target/tricore/helper.h | 1

[Qemu-devel] [PATCH v3 2/5] tricore: add UTOF instruction

2019-06-24 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski Reviewed-by: Bastian Koppelmann --- target/tricore/fpu_helper.c | 16 target/tricore/helper.h

[Qemu-devel] [PATCH v2 0/5] tricore: adding new instructions and fixing issues

2019-06-19 Thread David Brenken
From: David Brenken Hello everyone, as discussed here is the second version of the patchset. - We changed the implementation of the RRPW_INSERT to make use of tcg_gen_deposit_tl. - We added more information of the implementation of QSEED in the code and changed parts of the implementation

[Qemu-devel] [PATCH v2 4/5] tricore: add QSEED instruction

2019-06-19 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/fpu_helper.c | 85 + target/tricore/helper.h | 1

[Qemu-devel] [PATCH v2 3/5] tricore: fix RRPW_INSERT instruction

2019-06-19 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/tricore

[Qemu-devel] [PATCH v2 1/5] tricore: add FTOIZ instruction

2019-06-19 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski Reviewed-by: Bastian Koppelmann --- target/tricore/fpu_helper.c | 25 + target/tricore

[Qemu-devel] [PATCH v2 2/5] tricore: add UTOF instruction

2019-06-19 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski Reviewed-by: Bastian Koppelmann --- target/tricore/fpu_helper.c | 16 target/tricore/helper.h

[Qemu-devel] [PATCH v2 5/5] tricore: reset DisasContext before generating code

2019-06-19 Thread David Brenken
From: Georg Hofstetter Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/tricore/translate.c b

[Qemu-devel] [PATCH 0/5] tricore: adding new instructions and fixing issues

2019-06-05 Thread David Brenken
From: David Brenken Hello everyone, in the scope of this patchset we added implementations for the following instructions for the target TriCore: QSEED, FTOIZ, UTOF For the implementation of the QSEED instruction we wrote a test application to record the QSEED results on the actual target

[Qemu-devel] [PATCH 1/5] tricore: add FTOIZ instruction

2019-06-05 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/fpu_helper.c | 25 + target/tricore/helper.h | 1 + target/tricore

[Qemu-devel] [PATCH 5/5] tricore: reset DisasContext before generating code

2019-06-05 Thread David Brenken
From: Georg Hofstetter Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/tricore/translate.c b

[Qemu-devel] [PATCH 3/5] tricore: fix RRPW_INSERT instruction

2019-06-05 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/translate.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/target

[Qemu-devel] [PATCH 2/5] tricore: add UTOF instruction

2019-06-05 Thread David Brenken
From: David Brenken Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/fpu_helper.c | 16 target/tricore/helper.h | 1 + target/tricore/translate.c

[Qemu-devel] [PATCH 4/5] tricore: add QSEED instruction

2019-06-05 Thread David Brenken
From: Andreas Konopik Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/fpu_helper.c | 88 + target/tricore/helper.h | 1

[Qemu-devel] [PATCH 0/2] tricore: fixes for CADD and CADDN instructions

2019-02-06 Thread David Brenken
From: David Brenken Hello, this patch series contains a fix for the RCR CADD and RCR CADDN instruction of the TriCore. The r4 and r3 registers were swapped. Best regards David Brenken David Brenken (2): tricore: fixed RCR_CADD instruction tricore: fixed RCR_CADDN instruction target

[Qemu-devel] [PATCH 2/2] tricore: fixed RCR_CADDN instruction

2019-02-06 Thread David Brenken
From: David Brenken Signed-off-by: Christian Richter Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target

[Qemu-devel] [PATCH 1/2] tricore: fixed RCR_CADD instruction

2019-02-06 Thread David Brenken
From: David Brenken Signed-off-by: Christian Richter Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski --- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target

[Qemu-devel] [PATCH v2 4/4] tricore: renamed masking of PIE

2018-03-01 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> --- target/tricore/cpu.h

[Qemu-devel] [PATCH v2 3/4] tricore: renamed masking of IE

2018-03-01 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> --- target/tricore/cpu.h

[Qemu-devel] [PATCH v2 2/4] tricore: added CORE_ID

2018-03-01 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> --- target/tricore/cpu.h| 1 + tar

[Qemu-devel] [PATCH v2 0/4] tricore: added small features + fixed wrong masks

2018-03-01 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Hi Bastian, thank you for your feedback and sorry for the late reply. Changes from v1: * Removed OPC1_16_SB_JNE instruction. * Added CPU feature checks to new instructions. * Renamed ICR.IE and PCXI.PIE masks and added corresponding

[Qemu-devel] [PATCH v2 1/4] tricore: added some missing cpu instructions

2018-03-01 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> --- target/tricor

[Qemu-devel] [PATCH 5/5] tricore: fixed wrong shifting of PCXI PIE

2018-02-19 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> --- target/tricore/op_helper.c |

[Qemu-devel] [PATCH 3/5] tricore: fixed wrong masking of IE

2018-02-19 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> --- target/tricore/cpu.h | 2 +- 1 f

[Qemu-devel] [PATCH 2/5] tricore: added CORE_ID

2018-02-19 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> --- target/tricore/cpu.h| 1 + tar

[Qemu-devel] [PATCH 0/5] tricore: added small features + fixed wrong masks

2018-02-19 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Hello, this is my first commit of a patch set for QEMU. This patch series contains a few updates for the target tricore: - adding a few additional, previously missing cpu instructions - adding CORE_ID - fixing some masks - fixing a wrong

[Qemu-devel] [PATCH 1/5] tricore: added some missing cpu instructions

2018-02-19 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> --- target/tricor

[Qemu-devel] [PATCH 4/5] tricore: fixed wrong mask of PCXI_PIE

2018-02-19 Thread David Brenken
From: David Brenken <david.bren...@efs-auto.de> Signed-off-by: David Brenken <david.bren...@efs-auto.de> Signed-off-by: Georg Hofstetter <georg.hofstet...@efs-auto.de> Signed-off-by: Florian Artmeier <florian.artme...@efs-auto.de> --- target/tricore/cpu.h | 2 +- 1 f