> I agree, doing it manually is a reasonable option, though even that
> gets a little more complicated if you're in BCD mode.
Sure, but he's already got a bcdize function.  Could always write an
unbcdize function.  Actually, what probably makes sense is to keep the
global struct in the proper format for the guest, and write functions
to copy to a temporary binary format version of the struct that can be
operated on.  So, before any work, we create a temporary, copy to the
temporary unbcdizing as necessary.  Operate on the temporary and copy
back, bcdizing as necessary.  Seems like a nice defensive coding
strategy and since performance doesnt matter for this code...
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to