I much prefer the nop hacks as it made debugging things much easier. I could just insert a special nop-based sequence and find out what was going on. The nop hacks are great because they don't require any library support, or extra hardware, and they don't perturb the system.
---Matthew Hicks On Fri, Nov 30, 2012 at 7:56 PM, Peter Gavin <[email protected]> wrote: > Hi guys, > > Since we're doing ISA updates, I think might be useful to add a halt > instruction. In the simulator, it could be used to actually halt the > simulation. In a real CPU, this should probably just put the CPU to sleep > until an interrupt occurs. > > I also think we should deprecate the l.nop hacks we have everywhere in the > various simulators. They're primarily used for I/O and halting the > simulator. Since pretty much every implementation includes a UART, and a > UART is pretty easy to implement, perhaps we should (for example) modify the > or1ksim testsuite to output its diagnostic messages on the UART instead of > using nops. This would also help with building a testsuite that can run on > both simulators and real systems. > > What do you guys think? > > -Pete > > _______________________________________________ > OpenRISC mailing list > [email protected] > http://lists.openrisc.net/listinfo/openrisc > _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
