From: Andrew Waterman Date: Tue, 24 Aug 2010 10:13:02 +0000 (-0700) Subject: [xcc] argc/argv work for 32b programs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ad48949b9ef51538ea47e9b5b187b05d393b5dc;p=riscv-isa-sim.git [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. --- diff --git a/riscv/processor.cc b/riscv/processor.cc index e818840..4fbef44 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -42,7 +42,6 @@ void processor_t::set_sr(uint32_t val) sr = val & ~SR_ZERO; if(!support_64bit) 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; }