Ok, I got you. I will re-build a new patch for all the bitops.


2014-07-29 22:08 GMT+08:00 Aurelien Jarno <aurelien@aurel32.net>:
On Tue, Jul 29, 2014 at 08:41:08PM +0800, Elta wrote:
> I think, debug mode shouldn't crash the qemu with an unpredictable
> operation,
> so i want to fix it. And you say there shouldn't raise RI, i agree with you.

Agreed.

> Or when lsb > msb, just leave the code and do nothing. What do you
> think about
> this way?

Yes, you can use something like:

    if (lsb <= msb) {
        deposit(...)
    }

--
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net