[Bug 1885350] Re: RISCV dynamic rounding mode is not behaving correctly

2020-06-30 Thread Mina Magdy
Thank you Alistair Francis. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1885350 Title: RISCV dynamic rounding mode is not behaving correctly Status in QEMU: New Bug description: Hello, I

[Bug 1885350] Re: RISCV dynamic rounding mode is not behaving correctly

2020-06-27 Thread Mina Magdy
After checking RISCY RTL code, i found the implementation is straight forward as stated in specs as follows: if (FPU == 1) begin if (fp_rnd_mode == 3'b111) apu_flags = frm_i; else apu_flags = fp_rnd_mode;

[Bug 1885350] [NEW] RISCV dynamic rounding mode is not behaving correctly

2020-06-26 Thread Mina Magdy
Public bug reported: Hello, I’ve gone through the RISC-V code in latest QEMU release (qemu-5.0.0-rc2) and when checking the Floating point encodings I found the rounding mode is only updated if the opcode field “rm” is changed “ctx->frm == rm”. But according to RISC-V Volume I: Unprivileged ISA,