Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch/m68k/fpe



Module Name:    src
Committed By:   thorpej
Date:           Sun Nov  1 12:13:24 UTC 2026

Modified Files:
        src/sys/arch/m68k/fpe: fpu_calcea.c fpu_emulate.c fpu_fscale.c
            fpu_fstore.c

Log Message:
Don't proceed with undefined results in the face of memory access
errors in the FPU emulator:
- fpu_load_ea() / fpu_store_ea(): if copyin() / copyout() return non-zero,
  return SIGSEGV.

Catch some callers of fpu_load_ea() and fpu_store_ea() that were ignoring
the return value:
- fpu_emul_arith() / fpu_emul_fscale(): Pay attention to the return value
  of fpu_load_ea().
- fpu_emul_fstore(): Pay attention to the return value of fpu_store_ea().

Problem reported by Romain Dolbeau on port-m68k.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/m68k/fpe/fpu_calcea.c
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/m68k/fpe/fpu_emulate.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/m68k/fpe/fpu_fscale.c \
    src/sys/arch/m68k/fpe/fpu_fstore.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index