66
77 Copyright (c) 2005-2020 Kestrel Technology LLC
88 Copyright (c) 2020 Henny Sipma
9- Copyright (c) 2021-2022 Aarno Labs LLC
9+ Copyright (c) 2021-2024 Aarno Labs LLC
1010
1111 Permission is hereby granted, free of charge, to any person obtaining a copy
1212 of this software and associated documentation files (the "Software"), to deal
@@ -33,21 +33,12 @@ open CHNumerical
3333
3434(* chutil *)
3535open CHLogger
36- open CHPrettyUtil
3736
3837(* bchlib *)
39- open BCHBasicTypes
40- open BCHCPURegisters
41- open BCHDoubleword
42- open BCHImmediate
4338open BCHLibTypes
44- open BCHStreamWrapper
45- open BCHSystemInfo
46- open BCHSystemSettings
4739
4840(* bchlibmips32 *)
4941open BCHMIPSDisassemblyUtils
50- open BCHMIPSOpcodeRecords
5142open BCHMIPSOperand
5243open BCHMIPSTypes
5344
@@ -173,7 +164,7 @@ let parse_J_opcode
173164
174165let parse_R_opcode
175166 (instr : doubleword_int )
176- (opc : int )
167+ (_opc : int )
177168 (rrs : int )
178169 (rrt : int )
179170 (rrd : int )
@@ -228,11 +219,11 @@ let parse_R_opcode
228219
229220let parse_R2_opcode
230221 (instr : doubleword_int )
231- (opc : int )
222+ (_opc : int )
232223 (rrs : int )
233224 (rrt : int )
234225 (rrd : int )
235- (samt : int )
226+ (_samt : int )
236227 (fnct : int ) =
237228 let rs = select_mips_reg rrs in
238229 let rt = select_mips_reg rrt in
@@ -252,7 +243,7 @@ let parse_R2_opcode
252243
253244let parse_R3_opcode
254245 (instr : doubleword_int )
255- (opc : int )
246+ (_opc : int )
256247 (rrs : int )
257248 (rrt : int )
258249 (rrd : int )
@@ -277,12 +268,12 @@ let parse_R3_opcode
277268
278269let parse_FPMC_opcode
279270 (instr : doubleword_int )
280- (opc : int )
271+ (_opc : int )
281272 (rrs : int )
282273 (cc : int )
283274 (tf : int )
284275 (rrd : int )
285- (ffd : int )
276+ (_ffd : int )
286277 (funct : int ) =
287278 let rs = select_mips_reg rrs in
288279 let rd = select_mips_reg rrd in
@@ -298,7 +289,7 @@ let parse_FPMC_opcode
298289
299290let parse_FPRI_opcode
300291 (instr : doubleword_int )
301- (opc : int )
292+ (_opc : int )
302293 (sub : int )
303294 (rrt : int )
304295 (fs : int )
@@ -351,7 +342,7 @@ let parse_FPRI_opcode
351342
352343let parse_FPR_opcode
353344 (instr : doubleword_int )
354- (opc : int )
345+ (_opc : int )
355346 (fmt : int )
356347 (ft : int )
357348 (fs : int )
@@ -388,8 +379,8 @@ let parse_FPR_opcode
388379let parse_FPICC_opcode
389380 (instr : doubleword_int )
390381 (iaddr : doubleword_int )
391- (opc : int )
392- (sub : int )
382+ (_opc : int )
383+ (_sub : int )
393384 (cc : int )
394385 (nd : int )
395386 (tf : int )
@@ -439,17 +430,17 @@ let parse_opcode
439430 parse_R2_opcode instrbytes opc rs rt rd sa fn
440431 | R3Type (opc , rs , rt , rd , sa , fn ) ->
441432 parse_R3_opcode instrbytes opc rs rt rd sa fn
442- | FPMCType (opc , rs , cc , nd , tf , rd , fd , funct ) ->
433+ | FPMCType (opc , rs , cc , _nd , tf , rd , fd , funct ) ->
443434 parse_FPMC_opcode instrbytes opc rs cc tf rd fd funct
444435 | FPRIType (opc , sub , rt , fs , imm ) ->
445436 parse_FPRI_opcode instrbytes opc sub rt fs imm
446437 | FPRType (opc , fmt , ft , fs , fd , funct ) ->
447438 parse_FPR_opcode instrbytes opc fmt ft fs fd funct
448439 | FPICCType (opc , sub , cc , nd , tf , offset ) ->
449440 parse_FPICC_opcode instrbytes iaddr opc sub cc nd tf offset
450- | FPCompareType (opc , fmt , ft , fs , cc , cond ) ->
441+ | FPCompareType (_opc , fmt , ft , fs , cc , cond ) ->
451442 parse_FPCompare_opcode fmt ft fs cc cond
452- | FormatUnknown (opc , otherbits ) ->
443+ | FormatUnknown (_opc , _otherbits ) ->
453444 NotRecognized (" parse_opcode:format_unknown" , instrbytes) in
454445 opcode
455446
0 commit comments