Reviewed-by: Richard Henderson
Signed-off-by: Bastian Koppelmann
Message-Id: <20230621142302.1648383-7-kbast...@mail.uni-paderborn.de>
---
target/tricore/translate.c | 43 +-
1 file changed, 33 insertions(+), 10 deletions(-)
diff --git a/target/t
On Thu, Jun 22, 2023 at 10:43:16AM +0300, Michael Tokarev wrote:
> 21.06.2023 19:14, Bastian Koppelmann wrote:
> > From: Siqi Chen
> >
> > When translating "imask" instruction of Tricore architecture, QEMU did not
> > check whether the register in
Hi Michael,
On Fri, Jun 23, 2023 at 09:54:54AM +0300, Michael Tokarev wrote:
> 22.06.2023 17:51, Bastian Koppelmann wrote:
> ..
> > > Is it a -stable material?
> >
> > Yes. If you pick this up, make sure you also pick up
> > https://lore.kernel.org/qemu-dev
On Fri, Jun 23, 2023 at 01:29:23PM +0300, Michael Tokarev wrote:
> 23.06.2023 12:51, Bastian Koppelmann wrote:
>
> Here we go:
> https://www.qemu.org/docs/master/devel/stable-process.html
>
> Basically, any bugfix you, as a subsystem maintainer, think is good for
> stable,
A versions
- Add simple tests written in C
--------
Bastian Koppelmann (6):
tests/tcg/tricore: Move asm tests into 'asm' directory
tests/tcg/tricore: Uses label for memory addresses
tests/tcg/tricore: Add first C
the linker might rearrange sections, so lets reference memory by label
name instead of addr + off.
Signed-off-by: Bastian Koppelmann
Message-Id: <20230526061946.54514-3-kbast...@mail.uni-paderborn.de>
---
tests/tcg/tricore/asm/macros.h | 1 -
tests/tcg/tricore/asm/test_ld_bu
this seperates these tests from the upcoming tests written in C.
Also rename the compiled test to 'test_.asm.tst'.
Signed-off-by: Bastian Koppelmann
Message-Id: <20230526061946.54514-2-kbast...@mail.uni-paderborn.de>
---
tests/tcg/tricore/Makefile.sof
starting from ISA version 1.6.1 (previously known as 1.6P/E), some
bitfields in PCXI and ICR have changed. We also refactor these
registers using the register fields API.
Signed-off-by: Bastian Koppelmann
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1453
Message-Id
this allows us to exercise the startup code used by GCC to call main().
Signed-off-by: Bastian Koppelmann
Message-Id: <20230526061946.54514-4-kbast...@mail.uni-paderborn.de>
---
configure | 1 +
tests/tcg/tricore/Makefile.softmmu-target | 13 +
tes
we were copying PSW into a local variable, updated PSW.CDE in the local
and never wrote it back. So when we called save_context_upper() we were
using the non-local version of PSW which did not contain the updated
PSW.CDE.
Signed-off-by: Bastian Koppelmann
Message-Id: <20230526061946.5451
Signed-off-by: Bastian Koppelmann
Message-Id: <20230526061946.54514-7-kbast...@mail.uni-paderborn.de>
---
tests/tcg/tricore/Makefile.softmmu-target | 3 ++-
tests/tcg/tricore/c/test_context_save_areas.c | 15 +++
2 files changed, 17 insertions(+), 1 deletion(-)
creat
tant_i32(const9);
> | ^~~~
> target/tricore/translate.c:4958:10: note: shadowed declaration is here
>4958 | TCGv temp;
> | ^~~~
>
> Signed-off-by: Philippe Mathieu-Daudé
> ---
> target/tricore/translate.c | 6 +++---
> 1 file changed, 3 insertion
tricore/helper.c | 13 +
> 2 files changed, 10 insertions(+), 12 deletions(-)
Reviewed-by: Bastian Koppelmann
Cheers,
Bastian
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/asm/macros.h | 51 ++--
tests/tcg/tricore/asm/test_arith.S | 53 ++
2 files changed, 102 insertions(+), 2 deletions(-)
diff --git a/tests/tcg/tricore/asm/macros.h b/tests/tcg/tricore
Signed-off-by: Bastian Koppelmann
---
hw/tricore/tricore_testdevice.c | 4
1 file changed, 4 insertions(+)
diff --git a/hw/tricore/tricore_testdevice.c b/hw/tricore/tricore_testdevice.c
index a1563aa568..d0f8db9089 100644
--- a/hw/tricore/tricore_testdevice.c
+++ b/hw/tricore
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/asm/test_arith.S | 34 ++
1 file changed, 34 insertions(+)
diff --git a/tests/tcg/tricore/asm/test_arith.S
b/tests/tcg/tricore/asm/test_arith.S
index 728509cfa9..02637f89f9 100644
--- a/tests/tcg/tricore/asm
these are already defined in 'csfr.h.inc'. We don't need to duplicate
these registers.
Signed-off-by: Bastian Koppelmann
---
target/tricore/cpu.h | 143 +++
1 file changed, 9 insertions(+), 134 deletions(-)
diff --git a/target/tricore
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/asm/macros.h | 11 +++
tests/tcg/tricore/asm/test_arith.S | 47 ++
2 files changed, 58 insertions(+)
diff --git a/tests/tcg/tricore/asm/macros.h b/tests/tcg/tricore/asm/macros.h
index 8ed2249b0d
some insns use the result register implicitly as an input. Thus, we
could end up with data from the previous insn spilling over.
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/asm/macros.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/tcg/tricore/asm
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/Makefile.softmmu-target | 3 +-
tests/tcg/tricore/asm/macros.h| 50 +++
tests/tcg/tricore/asm/test_arith.S| 41 +++
3 files changed, 93 insertions(+), 1 deletion(-)
create mode
RSx for d regs and e regs now use the same numbering. This makes sure
that mixing d and e registers in an insn test will not overwrite data
between registers.
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/asm/macros.h | 38 +-
1 file changed, 19
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/asm/macros.h | 13
tests/tcg/tricore/asm/test_arith.S | 105 +
2 files changed, 118 insertions(+)
diff --git a/tests/tcg/tricore/asm/macros.h b/tests/tcg/tricore/asm/macros.h
index 92f0f7b22b
as this is an effective address and those cannot be signed,
it should not be a signed integed.
Signed-off-by: Bastian Koppelmann
---
target/tricore/op_helper.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/target/tricore/op_helper.c b/target/tricore
already defined in csfr.h.inc, so I use
this definition.
I also changed the types of the effective address (ea) in op_helper.c to
target_ulong, as it cannot be sign extened.
Cheers,
Bastian
Bastian Koppelmann (10):
tests/tcg/tricore: Extended and non-extened regs now match
hw/tricore: Log failing
On Thu, Oct 19, 2023 at 11:29:20AM -0700, Richard Henderson wrote:
> The EXTR instructions can use the extract opcodes.
>
> Signed-off-by: Richard Henderson
> ---
> target/tricore/translate.c | 20
> 1 file changed, 4 insertions(+), 16 deletions(-)
Re
On Fri, Oct 13, 2023 at 11:46:02AM +0300, Emmanouil Pitsidianakis wrote:
> In preparation of raising -Wimplicit-fallthrough to 5, replace all
> fall-through comments with the fallthrough attribute pseudo-keyword.
>
> Signed-off-by: Emmanouil Pitsidianakis
> ---
Reviewed-by: Bas
Signed-off-by: Bastian Koppelmann
---
target/tricore/helper.h | 1 +
target/tricore/meson.build| 1 +
target/tricore/tricore-semi.c | 197 ++
3 files changed, 199 insertions(+)
create mode 100644 target/tricore/tricore-semi.c
diff --git a/target
Signed-off-by: Bastian Koppelmann
---
target/tricore/tricore-semi.c | 16
1 file changed, 16 insertions(+)
diff --git a/target/tricore/tricore-semi.c b/target/tricore/tricore-semi.c
index 6f321391ef..2188ceeed0 100644
--- a/target/tricore/tricore-semi.c
+++ b/target/tricore
Signed-off-by: Bastian Koppelmann
---
configs/devices/tricore-softmmu/default.mak | 1 +
docs/about/emulation.rst| 3 +++
qemu-options.hx | 3 ++-
target/tricore/translate.c | 13 +++--
4 files changed, 17 insertions
Signed-off-by: Bastian Koppelmann
---
target/tricore/tricore-semi.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/target/tricore/tricore-semi.c b/target/tricore/tricore-semi.c
index ccbeae4bc0..6f321391ef 100644
--- a/target/tricore/tricore-semi.c
+++ b/target/tricore
test.elf
Cheers,
Bastian
[1] https://github.com/bkoppelmann/package_940/tree/main/newlib/libgloss/tricore
Bastian Koppelmann (6):
target/tricore: Add semihosting stub
target/tricore: Add read and write semihosting calls
target/tricore: Add lseek semihosting call
target/tricore: Add c
Signed-off-by: Bastian Koppelmann
---
target/tricore/tricore-semi.c | 52 +++
1 file changed, 52 insertions(+)
diff --git a/target/tricore/tricore-semi.c b/target/tricore/tricore-semi.c
index 27e1bdc59d..ccbeae4bc0 100644
--- a/target/tricore/tricore-semi.c
+++ b
Signed-off-by: Bastian Koppelmann
---
target/tricore/tricore-semi.c | 101 ++
1 file changed, 101 insertions(+)
diff --git a/target/tricore/tricore-semi.c b/target/tricore/tricore-semi.c
index 2188ceeed0..34e546c3bf 100644
--- a/target/tricore/tricore-semi.c
Signed-off-by: Bastian Koppelmann
---
target/tricore/translate.c | 8
tests/tcg/tricore/asm/macros.h | 9 +
tests/tcg/tricore/asm/test_insert.S | 5 +
3 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/target/tricore/translate.c b/target/tricore
Signed-off-by: Bastian Koppelmann
---
target/tricore/translate.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index 89ed48c951..a7865db75c 100644
--- a/target/tricore/translate.c
+++ b/target/tricore/translate.c
we would crash if width was 0 for these insns, as tcg_gen_deposit() is
undefined for that case. For TriCore, width = 0 is a mov from the src reg
to the dst reg, so we special case this here.
Signed-off-by: Bastian Koppelmann
---
target/tricore/translate.c | 10 --
tests/tcg
Signed-off-by: Bastian Koppelmann
---
target/tricore/translate.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index a68660b326..89ed48c951 100644
--- a/target/tricore/translate.c
+++ b/target/tricore
reported in https://gitlab.com/qemu-project/qemu/-/issues/1667
Signed-off-by: Bastian Koppelmann
---
target/tricore/fpu_helper.c | 41 +++
target/tricore/helper.c | 1 +
target/tricore/helper.h | 1 +
target/tricore
Hi,
this series implements the insns reported in [1], as well as ftou. Also I fixed
two bugs in the insert insn which I came across during testing.
Cheers,
Bastian
[1] https://gitlab.com/qemu-project/qemu/-/issues/1667
Bastian Koppelmann (10):
tests/tcg/tricore: Bump cpu to tc37x
target
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1667
Signed-off-by: Bastian Koppelmann
---
target/tricore/fpu_helper.c | 39 +++
target/tricore/helper.h | 1 +
target/tricore/translate.c| 7
target/tricore/tricore
we don't want to exclude ISA v1.6.2 insns from our tests.
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/Makefile.softmmu-target | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/tcg/tricore/Makefile.softmmu-target
b/tests/tcg/tricore/Makefile.softmmu-t
ore is not
the one used by softfloat.
Signed-off-by: Bastian Koppelmann
---
target/tricore/helper.c | 18 --
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/target/tricore/helper.c b/target/tricore/helper.c
index 6d076ac36f..e615c3d6d4 100644
--- a/target/tricore/he
Signed-off-by: Bastian Koppelmann
---
target/tricore/fpu_helper.c | 25 +++
target/tricore/helper.h | 1 +
target/tricore/translate.c| 3 +++
tests/tcg/tricore/Makefile.softmmu-target | 1 +
tests/tcg/tricore/asm/test_ftou.S
reported in https://gitlab.com/qemu-project/qemu/-/issues/1667
Signed-off-by: Bastian Koppelmann
---
target/tricore/helper.h | 1 +
target/tricore/op_helper.c| 66 +++
target/tricore/translate.c| 6 +++
target/tricore
On Sat, Aug 26, 2023 at 09:55:05PM -0700, Richard Henderson wrote:
> On 8/26/23 09:02, Bastian Koppelmann wrote:
> > +uint32_t helper_ftohp(CPUTriCoreState *env, uint32_t arg)
> > +{
> > +float32 f_arg = make_float32(arg);
> > +uint32_t result = 0;
On Sat, Aug 26, 2023 at 10:06:22PM -0700, Richard Henderson wrote:
> On 8/26/23 09:02, Bastian Koppelmann wrote:
> > Signed-off-by: Bastian Koppelmann
> > ---
> > target/tricore/translate.c | 8
> > tests/tcg/tricore/asm/macros.h | 9 +
On Sat, Aug 26, 2023 at 09:50:51PM -0700, Richard Henderson wrote:
> On 8/26/23 09:02, Bastian Koppelmann wrote:
> > +uint32_t helper_ftou(CPUTriCoreState *env, uint32_t arg)
> > +{
> > +float32 f_arg = make_float32(arg);
> > +uint32_t result;
> > +int
On Sun, Aug 27, 2023 at 07:49:52AM -0700, Richard Henderson wrote:
> On 8/27/23 04:07, Bastian Koppelmann wrote:
> > On Sat, Aug 26, 2023 at 09:50:51PM -0700, Richard Henderson wrote:
> > > On 8/26/23 09:02, Bastian Koppelmann wrote:
> > > > +uint32_t helper_ftou(CPUT
On Sun, Aug 27, 2023 at 11:32:03AM -0700, Richard Henderson wrote:
> On 8/27/23 09:36, Bastian Koppelmann wrote:
> > On Sun, Aug 27, 2023 at 07:49:52AM -0700, Richard Henderson wrote:
> > > On 8/27/23 04:07, Bastian Koppelmann wrote:
> > > > On Sat, Aug 26, 202
Signed-off-by: Bastian Koppelmann
---
v1 -> v2:
- Remove special case for NAN input
- Clarified, why we need arg < 0.0 special case
target/tricore/fpu_helper.c | 32 +++
target/tricore/helper.h | 1 +
target/tricore/trans
reported in https://gitlab.com/qemu-project/qemu/-/issues/1667
Signed-off-by: Bastian Koppelmann
---
v1 -> v2:
- Removed useless deposits in crc_div()
- Replaced final deposit() with extract() in helper_crcn()
- Add trap for CRCN insn if not feature_162
target/tricore/helpe
Reviewed-by: Richard Henderson
Signed-off-by: Bastian Koppelmann
---
target/tricore/translate.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index cc2030be14..9770839749 100644
--- a/target/tricore/translate.c
ore is not
the one used by softfloat.
Reviewed-by: Richard Henderson
Signed-off-by: Bastian Koppelmann
---
target/tricore/helper.c | 18 --
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/target/tricore/helper.c b/target/tricore/helper.c
index 6d076ac36f..e615
we don't want to exclude ISA v1.6.2 insns from our tests.
Acked-by: Richard Henderson
Signed-off-by: Bastian Koppelmann
---
tests/tcg/tricore/Makefile.softmmu-target | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/tcg/tricore/Makefile.softmmu-target
b/test
need a special case for arg being NAN (ftohp, hptof)
Bastian Koppelmann (11):
tests/tcg/tricore: Bump cpu to tc37x
target/tricore: Implement CRCN insn
target/tricore: Correctly handle FPU RM from PSW
target/tricore: Implement FTOU insn
target/tricore: Clarify special case for FTOUZ insn
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1667
Signed-off-by: Bastian Koppelmann
---
v1 -> v2:
- Removed special case for f_arg being infinity
- Clarified, why we need a special case for arg being NAN
target/tricore/fpu_helper.c |
reported in https://gitlab.com/qemu-project/qemu/-/issues/1667
Signed-off-by: Bastian Koppelmann
---
v1 -> v2:
- Removed special case for f_arg being infinity
- Clarified, why we need a special case for arg being NAN
target/tricore/fpu_helper.c |
Reviewed-by: Richard Henderson
Signed-off-by: Bastian Koppelmann
---
target/tricore/translate.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index 403533c564..cc2030be14 100644
--- a/target/tricore/translate.c
Signed-off-by: Bastian Koppelmann
---
target/tricore/translate.c | 8
tests/tcg/tricore/asm/macros.h | 9 +
tests/tcg/tricore/asm/test_insert.S | 5 +
3 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/target/tricore/translate.c b/target/tricore
we would crash if width was 0 for these insns, as tcg_gen_deposit() is
undefined for that case. For TriCore, width = 0 is a mov from the src reg
to the dst reg, so we special case this here.
Reviewed-by: Richard Henderson
Signed-off-by: Bastian Koppelmann
---
target/tricore/translate.c
this is not something other ISAs do, so clarify it with a comment.
Signed-off-by: Bastian Koppelmann
---
target/tricore/fpu_helper.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/target/tricore/fpu_helper.c b/target/tricore/fpu_helper.c
index 3aefeb776e..d0c474c5f3 100644
--- a
On Mon, Aug 28, 2023 at 06:52:42PM -0400, Stefan Hajnoczi wrote:
> On Thu, 24 Aug 2023 at 14:29, Richard Henderson
> wrote:
> >
> > The following changes since commit 50e7a40af372ee5931c99ef7390f5d3d6fbf6ec4:
> >
> > Merge tag 'pull-target-arm-20230824' of
> > https://git.linaro.org/people/pmay
INERS b/MAINTAINERS
> index 7196dba..dad82e7 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -228,6 +228,7 @@ M: Bastian Koppelmann
> S: Maintained
> F: target-tricore/
> F: hw/tricore/
> +F: include/hw/tricore/
>
> Guest CPU Cores (KVM):
> -
Reviewed-by: Bastian Koppelmann
Tested-by: Bastian Koppelmann
Cheers,
Bastian
On 11/23/2016 02:01 PM, Richard Henderson wrote:
> Signed-off-by: Richard Henderson
> ---
> target-tricore/helper.h| 1 -
> target-tricore/op_helper.c | 5 -
> target-tricore/translate.c | 2 +-
> 3 files changed, 1 insertion(+), 7 deletions(-)
>
Reviewed-by: Basti
omments on
that?
Additionally this patch set adds the UPDFL instructions.
Cheers,
Bastian
[1] http://lists.nongnu.org/archive/html/qemu-devel/2016-06/msg01936.html
v1 -> v2:
- ftouz: Correctly convert the result from uint32 to f32
Bastian Koppelmann (3):
target-tricore: Added FTOU
From: Peer Adelt
Puts the content of data register D[a] into E[c][63:32] and the
content of data register D[b] into E[c][31:0].
[BK: fix style error]
Signed-off-by: Peer Adelt
Message-Id: <1465314555-11501-4-git-send-email-peer.ad...@c-lab.de>
---
target-tricore/translate.c | 15
From: Peer Adelt
If D[15] is != sign_ext(const4) then PC will be set to (PC +
zero_ext(disp4 + 16)).
[BK: fixed style errors]
Signed-off-by: Peer Adelt
Message-Id: <1465314555-11501-5-git-send-email-peer.ad...@c-lab.de>
---
target-tricore/translate.c | 18 ++
target-trico
Signed-off-by: Bastian Koppelmann
---
target-tricore/fpu_helper.c | 12
target-tricore/helper.h | 1 +
target-tricore/translate.c | 3 +++
3 files changed, 16 insertions(+)
diff --git a/target-tricore/fpu_helper.c b/target-tricore/fpu_helper.c
index d530a0b..89de0ea 100644
Converts a 32-bit floating point number to an unsigned int. The
result is rounded towards zero.
Signed-off-by: Bastian Koppelmann
---
v1 -> v2:
- ftouz: Correctly convert the result from uint32 to f32
target-tricore/fpu_helper.c | 43 +++
tar
Multiplies D[a] and D[b] and adds/subtracts the result to/from D[d].
The result is put in D[c]. All operands are floating-point numbers.
Signed-off-by: Bastian Koppelmann
---
target-tricore/fpu_helper.c | 93 -
target-tricore/helper.h | 2
On 11/08/2016 12:36 PM, Richard Henderson wrote:
> On 11/07/2016 03:44 PM, Bastian Koppelmann wrote:
>> Converts a 32-bit floating point number to an unsigned int. The
>> result is rounded towards zero.
>>
>> Signed-off-by: Bastian Koppelmann
>> ---
>> v1 -
On 11/08/2016 04:06 PM, Richard Henderson wrote:
> On 11/08/2016 02:37 PM, Bastian Koppelmann wrote:
>> Consider 0x836d4e86 as an input which is clearly negative, however
>> float_flag_invalid is not set. The hardware on the other hand does set
>> it.
>
> Hmm
On 11/08/2016 12:42 PM, Richard Henderson wrote:
> On 11/07/2016 03:44 PM, Bastian Koppelmann wrote:
>> Multiplies D[a] and D[b] and adds/subtracts the result to/from D[d].
>> The result is put in D[c]. All operands are floating-point numbers.
>>
>> Signed
On 11/08/2016 04:25 PM, Richard Henderson wrote:
> On 11/08/2016 04:12 PM, Bastian Koppelmann wrote:
>> On 11/08/2016 04:06 PM, Richard Henderson wrote:
>>> On 11/08/2016 02:37 PM, Bastian Koppelmann wrote:
>>>> Consider 0x836d4e86 as an input whic
From: Peer Adelt
If D[15] is != sign_ext(const4) then PC will be set to (PC +
zero_ext(disp4 + 16)).
[BK: fixed style errors]
Signed-off-by: Peer Adelt
Message-Id: <1465314555-11501-5-git-send-email-peer.ad...@c-lab.de>
---
target-tricore/translate.c | 18 ++
target-trico
eded.
[05/05] Add fpu_set_state() to update softfloats rounding mode
[05/05] Move generation of the updfl helper to decode_rr_divide()
v1 -> v2:
[01/05] ftouz: Correctly convert the result from uint32 to f32
Bastian Koppelmann (3):
target-tricore: Added FTOUZ instruction
targe
From: Peer Adelt
Puts the content of data register D[a] into E[c][63:32] and the
content of data register D[b] into E[c][31:0].
[BK: fix style error]
[BK: Allocate temporaries only when needed]
Signed-off-by: Peer Adelt
Message-Id: <1465314555-11501-4-git-send-email-peer.ad...@c-lab.de>
---
v2
Multiplies D[a] and D[b] and adds/subtracts the result to/from D[d].
The result is put in D[c]. All operands are floating-point numbers.
Signed-off-by: Bastian Koppelmann
---
v2 -> v3:
- f_maddsub_nan_result() now gets a boolean value indicating whether the
muladd_negate_c flag is
Converts a 32-bit floating point number to an unsigned int. The
result is rounded towards zero.
Signed-off-by: Bastian Koppelmann
---
v2 -> v3:
- simplified exception flag fixup in ftouz()
target-tricore/fpu_helper.c | 27 +++
target-tricore/helper.h |
Signed-off-by: Bastian Koppelmann
---
v2 -> v3:
- Add fpu_set_state() to update softfloats rounding mode
- Move generation of the updfl helper to decode_rr_divide()
target-tricore/fpu_helper.c | 14 ++
target-tricore/helper.h | 1 +
target-tricore/translate.c |
On 11/11/2016 06:04 AM, G 3 wrote:
> http://fossboss.com/2016/08/13/use-qemu-test-operating-systems-distributions/
>
>
> On this page I found a huge list of QEMU emulators. I haven't heard of
> most of them, but some of them are not on the platforms page. Do you
> think we should add the missing
On 11/11/2016 04:18 PM, G 3 wrote:
>
> On Nov 11, 2016, at 10:16 AM, Bastian Koppelmann wrote:
>
>> On 11/11/2016 06:04 AM, G 3 wrote:
>>> http://fossboss.com/2016/08/13/use-qemu-test-operating-systems-distributions/
>>>
>>>
>>>
>>> O
On 11/16/2016 08:25 PM, Richard Henderson wrote:
> diff --git a/target-tricore/translate.c b/target-tricore/translate.c
> index 36f734a..69cdfb9 100644
> --- a/target-tricore/translate.c
> +++ b/target-tricore/translate.c
> @@ -6367,7 +6367,8 @@ static void decode_rr_logical_shift(CPUTriCoreState
On 11/17/2016 03:42 PM, Bastian Koppelmann wrote:
> On 11/16/2016 08:25 PM, Richard Henderson wrote:
>> diff --git a/target-tricore/translate.c b/target-tricore/translate.c
>> index 36f734a..69cdfb9 100644
>> --- a/target-tricore/translate.c
>> +++ b/target-tricor
On 11/16/2016 08:25 PM, Richard Henderson wrote:
> +
> +OP_32_64(clz):
> +if (const_args[2]) {
> +tcg_debug_assert(have_bmi1);
> +tcg_debug_assert(args[2] == (rexw ? 64 : 32));
> +tcg_out_modrm(s, OPC_LZCNT + rexw, args[0], args[1]);
> +} else
On 11/17/2016 08:59 PM, Richard Henderson wrote:
> On 11/17/2016 08:53 PM, Richard Henderson wrote:
>> On 11/17/2016 05:50 PM, Bastian Koppelmann wrote:
>>> On 11/16/2016 08:25 PM, Richard Henderson wrote:
>>>> +
>>>> +OP_
On 11/18/2016 12:03 AM, Richard Henderson wrote:
> On 11/17/2016 11:09 PM, Bastian Koppelmann wrote:
>> On 11/17/2016 08:59 PM, Richard Henderson wrote:
>>> On 11/17/2016 08:53 PM, Richard Henderson wrote:
>>>> On 11/17/2016 05:50 PM, Bastian Koppelmann wrote:
>>
On 10/05/2016 05:33 PM, Programmingkid wrote:
> Where is the definition for gen_helper_compute_fprf()? This function is used
> in fp-impl.inc.c.
>
Depends on what you're looking for.
The function to be called from binary translated code, would be called
"helper_compute_fprf" and can be found in
Signed-off-by: Bastian Koppelmann
---
target-tricore/fpu_helper.c | 12
target-tricore/helper.h | 1 +
target-tricore/translate.c | 3 +++
3 files changed, 16 insertions(+)
diff --git a/target-tricore/fpu_helper.c b/target-tricore/fpu_helper.c
index 32055f3..9720cb8 100644
Multiplies D[a] and D[b] and adds/subtracts the result to/from D[d].
The result is put in D[c]. All operands are floating-point numbers.
Signed-off-by: Bastian Koppelmann
---
target-tricore/fpu_helper.c | 93 -
target-tricore/helper.h | 2
From: Peer Adelt
Puts the content of data register D[a] into E[c][63:32] and the
content of data register D[b] into E[c][31:0].
[BK: fix style error]
Signed-off-by: Peer Adelt
Message-Id: <1465314555-11501-4-git-send-email-peer.ad...@c-lab.de>
---
target-tricore/translate.c | 15
From: Peer Adelt
If D[15] is != sign_ext(const4) then PC will be set to (PC +
zero_ext(disp4 + 16)).
[BK: fixed style errors]
Signed-off-by: Peer Adelt
Message-Id: <1465314555-11501-5-git-send-email-peer.ad...@c-lab.de>
---
target-tricore/translate.c | 18 ++
target-trico
ditionally this patch set adds the UPDFL instructions.
Cheers,
Bastian
[1] http://lists.nongnu.org/archive/html/qemu-devel/2016-06/msg01936.html
Bastian Koppelmann (3):
target-tricore: Added FTOUZ instruction
target-tricore: Added MADD.F and MSUB.F instructions
target-tricore:
Converts a 32-bit floating point number to an unsigned int. The
result is rounded towards zero.
Signed-off-by: Bastian Koppelmann
---
target-tricore/fpu_helper.c | 42 ++
target-tricore/helper.h | 1 +
target-tricore/translate.c | 3 +++
3 files
Hi QEMU devs, hi risc-v-sw devs,
I'm posting this cross mailing list since I'd like to get feedback from
the both sides.
Right now the RISC-V port for QEMU uses the classic decoding scheme of
one function decoding the first opcode (and prefixes) and then branches
to different functions for decodi
On 07/25/2017 06:37 PM, Bruce Hoult wrote:
> Do you have any good estimates for how much of the execution time is
> typically spent in instruction decode?
>
> RISC-V qemu is twice as fast as ARM or Aarch64 qemu, so it's doing
> something right!
>
> (I suspect it's probably mostly the lack of need
ide to take might well work and satisfy
> extensibility requirements, but it'll likely take a performance hit as
> well.
>
> On Tue, Jul 25, 2017 at 6:04 AM, Bastian Koppelmann
> wrote:
>> Hi QEMU devs, hi risc-v-sw devs,
>>
>> I'm posting this cross maili
On 07/28/2017 01:19 PM, Michael Tokarev wrote:
> 27.07.2017 17:30, Eduardo Otubo wrote:
>> Starting Qemu with "qemu-system-tricore -nographic -M tricore_testboard -S"
>> and entering "x 0" at the monitor prompt leads to Segmentation fault. This
>> happens
>> because tricore_cpu_get_phys_page_debug
would ensure that null-mchine usecase still works.
>
> Signed-off-by: Igor Mammedov
Acked-by: Bastian Koppelmann
Cheers,
Bastian
801 - 900 of 1418 matches
Mail list logo