| K900 Alright this may be a NixOS related cross compiling question but maybe not.
I have a very simple C program that looks like this:
void _start() {
volatile long *a = (long *)0x1FFA0;
volatile long *b = (long *)0x1FFA8;
volatile long *c = (long *)0x1FFB0;
*c = *b / *a;
for(;;) {}
}
This relies on doing software division (the actual hardware instruction can only do 32 bit / 16 bit -> 16 bit or something like that). So it calls __divsi3.
__divsi3 seems to be compiled incorrectly. It tries to use a BSR.L instruction, which doesn't exist on the m68k. It only has the BSR.W and BSR.B instructions. I am wondering what I would need to do to fix this |