mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-06 06:54:13 +00:00
commit
b9a39f6ec0
@ -14,7 +14,7 @@ extern "C" {
|
||||
// Header version
|
||||
#define RAB_VERSION_MAJOR 1
|
||||
#define RAB_VERSION_MINOR 3
|
||||
#define RAB_VERSION_PATCH 1
|
||||
#define RAB_VERSION_PATCH 2
|
||||
|
||||
#define RAB_VERSION_STR RAB_STRINGIFY(RAB_VERSION_MAJOR) "." RAB_STRINGIFY(RAB_VERSION_MINOR) "." RAB_STRINGIFY(RAB_VERSION_PATCH)
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
[metadata]
|
||||
name = rabbitizer
|
||||
# Version should be synced with include/common/RabbitizerVersion.h
|
||||
version = 1.3.1
|
||||
version = 1.3.2
|
||||
author = Decompollaborate
|
||||
license = MIT
|
||||
description = MIPS instruction decoder
|
||||
|
@ -849,6 +849,10 @@ uint32_t RabbitizerInstruction_getValidBits(const RabbitizerInstruction *self) {
|
||||
bool RabbitizerInstruction_isValid(const RabbitizerInstruction *self) {
|
||||
uint32_t validbits;
|
||||
|
||||
if (!RabbitizerInstruction_isImplemented(self)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
validbits = RabbitizerInstruction_getValidBits(self);
|
||||
|
||||
return ((~validbits) & self->word) == 0;
|
||||
|
@ -161,7 +161,7 @@ void RabbitizerInstructionRsp_processUniqueId_Coprocessor0(RabbitizerInstruction
|
||||
self->_mandatorybits = RAB_INSTR_PACK_fmt(self->_mandatorybits, fmt);
|
||||
|
||||
switch (fmt) {
|
||||
#include "instructions/instr_id/cpu/cpu_cop0.inc"
|
||||
#include "instructions/instr_id/rsp/rsp_cop0.inc"
|
||||
}
|
||||
|
||||
self->descriptor = &RabbitizerInstrDescriptor_Descriptors[self->uniqueId];
|
||||
@ -190,7 +190,7 @@ void RabbitizerInstructionRsp_processUniqueId_Coprocessor2(RabbitizerInstruction
|
||||
self->_mandatorybits = RAB_INSTR_PACK_fmt(self->_mandatorybits, fmt);
|
||||
|
||||
switch (fmt) {
|
||||
#include "instructions/instr_id/cpu/cpu_cop0.inc"
|
||||
#include "instructions/instr_id/rsp/rsp_cop2.inc"
|
||||
|
||||
default:
|
||||
RabbitizerInstructionRsp_processUniqueId_Coprocessor2_Vu(self);
|
||||
|
Loading…
Reference in New Issue
Block a user