Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
authorJackie Smith Cashion <jsmith@redhat.com>
Thu, 9 May 1996 23:43:58 +0000 (23:43 +0000)
committerJackie Smith Cashion <jsmith@redhat.com>
Thu, 9 May 1996 23:43:58 +0000 (23:43 +0000)
* interp.c (ColdReset): Fix boolean test.

Actually compare a boolean result, rather than the bitmasks!

sim/mips/interp.c

index af3ae29da2a35a179387fee3a670d24dca0ba8a5..5700e59a656b017c13a100f60dbb31ffc1de8fee 100644 (file)
@@ -1881,7 +1881,7 @@ ColdReset()
     exit(1);
   }
 
-  if ((state & simHOSTBE) == (state & simBE)) {
+  if (!(state & simHOSTBE) == !(state & simBE)) {
     host_read_word = xfer_direct_word;
     host_read_long = xfer_direct_long;
     host_swap_word = swap_direct_word;