rn = rp[op>>0 & 0x7];
rd = rp + (op>>12 & 0x7);
rp = (ulong*)*rd;
- validaddr((ulong)rp, 4, 1);
+ validaddr((uintptr)rp, 4, 1);
splhi();
if(*rd = (*rp == ro))
*rp = rn;
rp = (ulong*)ur;
rd = rp + (op>>16 & 0x7);
addr = (ulong*)*rd;
- validaddr((ulong)addr, 4, 0);
+ validaddr((uintptr)addr, 4, 0);
ldrexvalid = 1;
rp[op>>12 & 0x7] = *addr;
if(fpemudebug)
rd = rp + (op>>16 & 0x7);
rn = rp[op>>0 & 0x7];
addr = (ulong*)*rd;
- validaddr((ulong)addr, 4, 1);
+ validaddr((uintptr)addr, 4, 1);
splhi();
if(ldrexvalid){
if(fpemudebug)
if(up == nil)
panic("fpiarm not in a process");
- ufp = &up->fpsave;
+ ufp = up->fpsave;
/*
* because all the emulated fp state is in the proc structure,
* it need not be saved/restored