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 af3ae29..5700e59 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;