[xcc] argc/argv work for 32b programs
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>
Tue, 24 Aug 2010 10:13:02 +0000 (03:13 -0700)
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>
Tue, 24 Aug 2010 10:13:02 +0000 (03:13 -0700)
Some patch-up code runs as soon as the 32b version of crt1 begins running
that massages the pointers accordingly.

riscv/processor.cc

index e81884053935d9151480cd16e6890a78d4f60c96..4fbef44a9bb0ce27d82ee59a57d0609c02ef5373 100644 (file)
@@ -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;
 }