Merge pull request #14 from Decompollaborate/develop

1.3.2
This commit is contained in:
Anghelo Carvajal 2022-11-30 10:47:06 -03:00 committed by GitHub
commit b9a39f6ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -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)

View File

@ -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

View File

@ -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;

View File

@ -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);