diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2024-10-14 11:27:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-14 11:27:06 +0200 |
| commit | b5bebcbc1cf00795ca4f80288daff4debccf0ff3 (patch) | |
| tree | b7734fc8582f814acc730c25ec66c42ef73df200 | |
| parent | 702bb601fb5712e2ae962a34b89204c646fe98f5 (diff) | |
| parent | 5e3ed65158b53c0a4e7cfe8b3f72d858426315a4 (diff) | |
Merge pull request #88 from victorfeitosa/bug/fix-inline-gte-macros
Bugfix - Fix unitialized GTE registers
| -rw-r--r-- | libpsn00b/include/inline_c.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpsn00b/include/inline_c.h b/libpsn00b/include/inline_c.h index cb550b9..11978ae 100644 --- a/libpsn00b/include/inline_c.h +++ b/libpsn00b/include/inline_c.h @@ -383,7 +383,7 @@ "ctc2 $t2, $4;" \ : \ : "r"( r0 ) \ - : "$t2" ) + : "$t0", "$t1", "$t2" ) #define gte_ldsvllrow0( r0 ) __asm__ volatile ( \ "lw $12, 0( %0 );" \ @@ -418,7 +418,7 @@ "ctc2 $t2, $12;" \ : \ : "r"( r0 ) \ - : "$t2" ) + : "$t0", "$t1", "$t2" ) #define gte_ldsvlcrow0( r0 ) __asm__ volatile ( \ "lw $12, 0( %0 );" \ @@ -453,7 +453,7 @@ "ctc2 $t2, $20;" \ : \ : "r"( r0 ) \ - : "$t2" ) + : "$t0", "$t1", "$t2" ) /** * @brief Sets the translation portion of a MATRIX to the GTE @@ -470,7 +470,7 @@ "ctc2 $t2, $7;" \ : \ : "r"( r0 ) \ - : "$t2" ) + : "$t0", "$t1", "$t2" ) #define gte_ldtr( r0, r1, r2 ) __asm__ volatile ( \ "ctc2 %0, $5;" \ |
