Browse Source

[xcc] argc/argv work for 32b programs

Some patch-up code runs as soon as the 32b version of crt1 begins running
that massages the pointers accordingly.
cs250
Andrew Waterman 16 years ago
parent
commit
2ad48949b9
  1. 1
      riscv/processor.cc

1
riscv/processor.cc

@ -42,7 +42,6 @@ void processor_t::set_sr(uint32_t val)
sr = val & ~SR_ZERO; sr = val & ~SR_ZERO;
if(!support_64bit) if(!support_64bit)
sr &= ~(SR_KX | SR_UX); sr &= ~(SR_KX | SR_UX);
printf("kx,ux now %d,%d %llx\n",!!(sr & SR_KX),!!(sr & SR_UX),pc);
gprlen = ((sr & SR_S) ? (sr & SR_KX) : (sr & SR_UX)) ? 64 : 32; gprlen = ((sr & SR_S) ? (sr & SR_KX) : (sr & SR_UX)) ? 64 : 32;
} }

Loading…
Cancel
Save