libn64: or why you don't push directly to master.
authorTyler J. Stachecki <stachecki.tyler@gmail.com>
Wed, 20 Dec 2017 00:46:57 +0000 (19:46 -0500)
committerTyler J. Stachecki <stachecki.tyler@gmail.com>
Wed, 20 Dec 2017 00:46:57 +0000 (19:46 -0500)
Signed-off-by: Tyler J. Stachecki <stachecki.tyler@gmail.com>
libn64/sp/init.c

index 3d99489..5930dd7 100644 (file)
@@ -34,6 +34,6 @@ void libn64_sp_init(void) {
   // Execute the ucode and wait for it to complete.
   libn64_rsp_set_pc(0x04001000);
   libn64_rsp_set_status(RSP_STATUS_CLEAR_HALT | RSP_STATUS_CLEAR_BROKE);
-  while ((libn64_rsp_get_status() & 0x3) == 0x3);
+  while ((libn64_rsp_get_status() & 0x3) != 0x3);
 }