On Fri, 21 Jun 2024, YunQiang Su wrote:

> >  Then GCC emits the wrong trap instruction, wherever it comes from and
> > whatever has caused it.  The correct ones for integer division by zero
> 
> Thanks so much. It is not the bug of Linux kernel or GCC.
> It is a bug of me ;) and qemu.
> 
> Qemu didn't pass the code of TEQ correctly; and I haven't run this test on
> real hardware.

 QEMU is a simulator only and has bugs or other discrepancies from real 
hardware.  Especially the user emulation mode combines issues with actual 
instruction simulation *and* the OS interface.  Therefore you can use QEMU 
as a valuable tool in the course of making your changes, but you need to 
always verify the final result with real hardware before submitting it 
upstream.

 Also submissions need to include details as to how the problem addressed 
has been reproduced.

 Otherwise this is just producing noise and wasting people's time.

  Maciej

Reply via email to