On 08/01/2018 09:39 AM, Fredrik Noring wrote: > Can QEMU be instructed to emulate > the FPU only for Linux user space programs as opposed to hardware emulation?
Yes, that can be done. I would suggest something like /* * Hardware traps to the operating system for emulation. * For user-only, qemu is the operating system, so we * emulate the trap and emulate by simply emulating the * instruction directly. */ #ifdef CONFIG_USER_ONLY # define CP0C1_FP_USER_ONLY (1 << CP0C1_FP) #else # define CP0C1_FP_USER_ONLY 0 #endif and include that in your initialization of CP0_Config1. r~