Skip to content

Commit

Permalink
Add LoadUpperImmediate
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Nov 16, 2023
1 parent 2d6836c commit a7c65d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions optimism/src/mips/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ pub struct ITypeInstructionSelectors<T> {
pub or_immediate: T,
pub xor_immediate: T,
pub load_immediate: T,
pub load_upper_immediate: T,
pub load_8: T,
pub load_16: T,
pub load_32: T,
Expand Down Expand Up @@ -568,6 +569,7 @@ impl<A> Index<ITypeInstruction> for ITypeInstructionSelectors<A> {
ITypeInstruction::OrImmediate => &self.or_immediate,
ITypeInstruction::XorImmediate => &self.xor_immediate,
ITypeInstruction::LoadImmediate => &self.load_immediate,
ITypeInstruction::LoadUpperImmediate => &self.load_upper_immediate,
ITypeInstruction::Load8 => &self.load_8,
ITypeInstruction::Load16 => &self.load_16,
ITypeInstruction::Load32 => &self.load_32,
Expand Down Expand Up @@ -597,6 +599,7 @@ impl<A> IndexMut<ITypeInstruction> for ITypeInstructionSelectors<A> {
ITypeInstruction::OrImmediate => &mut self.or_immediate,
ITypeInstruction::XorImmediate => &mut self.xor_immediate,
ITypeInstruction::LoadImmediate => &mut self.load_immediate,
ITypeInstruction::LoadUpperImmediate => &mut self.load_upper_immediate,
ITypeInstruction::Load8 => &mut self.load_8,
ITypeInstruction::Load16 => &mut self.load_16,
ITypeInstruction::Load32 => &mut self.load_32,
Expand Down Expand Up @@ -624,6 +627,7 @@ impl<A> ITypeInstructionSelectors<A> {
or_immediate: &self.or_immediate,
xor_immediate: &self.xor_immediate,
load_immediate: &self.load_immediate,
load_upper_immediate: &self.load_upper_immediate,
load_8: &self.load_8,
load_16: &self.load_16,
load_32: &self.load_32,
Expand All @@ -649,6 +653,7 @@ impl<A> ITypeInstructionSelectors<A> {
or_immediate: &mut self.or_immediate,
xor_immediate: &mut self.xor_immediate,
load_immediate: &mut self.load_immediate,
load_upper_immediate: &mut self.load_upper_immediate,
load_8: &mut self.load_8,
load_16: &mut self.load_16,
load_32: &mut self.load_32,
Expand All @@ -674,6 +679,7 @@ impl<A> ITypeInstructionSelectors<A> {
or_immediate,
xor_immediate,
load_immediate,
load_upper_immediate,
load_8,
load_16,
load_32,
Expand All @@ -696,6 +702,7 @@ impl<A> ITypeInstructionSelectors<A> {
or_immediate: f(or_immediate),
xor_immediate: f(xor_immediate),
load_immediate: f(load_immediate),
load_upper_immediate: f(load_upper_immediate),
load_8: f(load_8),
load_16: f(load_16),
load_32: f(load_32),
Expand All @@ -721,6 +728,7 @@ impl<A> ITypeInstructionSelectors<A> {
or_immediate,
xor_immediate,
load_immediate,
load_upper_immediate,
load_8,
load_16,
load_32,
Expand All @@ -743,6 +751,7 @@ impl<A> ITypeInstructionSelectors<A> {
or_immediate,
xor_immediate,
load_immediate,
load_upper_immediate,
load_8,
load_16,
load_32,
Expand Down

0 comments on commit a7c65d4

Please sign in to comment.