Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: src/mips64/simulator-mips64.h

Issue 1046873004: MIPS: Refactor simulator and add selection instructions for r6. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/mips64/simulator-mips64.h
diff --git a/src/mips64/simulator-mips64.h b/src/mips64/simulator-mips64.h
index 3087dcdab82232dc81de53ad67993c9db92395f6..237a244dbf2ea6fabea9ef843fa0016ec05e0949 100644
--- a/src/mips64/simulator-mips64.h
+++ b/src/mips64/simulator-mips64.h
@@ -312,6 +312,45 @@ class Simulator {
inline int32_t SetDoubleHIW(double* addr);
inline int32_t SetDoubleLOW(double* addr);
+ // functions called from DecodeTypeRegister
+ void DecodeTypeRegisterCOP1(Instruction* instr, const int64_t& rs_reg,
+ const int64_t& rs, const uint64_t& rs_u,
+ const int64_t& rt_reg, const int64_t& rt,
+ const uint64_t& rt_u, const int64_t& rd_reg,
+ const int32_t& fr_reg, const int32_t& fs_reg,
+ const int32_t& ft_reg, const int64_t& fd_reg,
+ int64_t& alu_out);
+
+ void DecodeTypeRegisterCOP1X(Instruction* instr, const int32_t& fr_reg,
+ const int32_t& fs_reg, const int32_t& ft_reg,
+ const int64_t& fd_reg);
+
+ void DecodeTypeRegisterSPECIAL(
+ Instruction* instr, const int64_t& rs_reg, const int64_t& rs,
+ const uint64_t& rs_u, const int64_t& rt_reg, const int64_t& rt,
+ const uint64_t& rt_u, const int64_t& rd_reg, const int32_t& fr_reg,
+ const int32_t& fs_reg, const int32_t& ft_reg, const int64_t& fd_reg,
+ int64_t& i64hilo, uint64_t& u64hilo, int64_t& alu_out, bool& do_interrupt,
+ int64_t& current_pc, int64_t& next_pc, int64_t& return_addr_reg,
+ int64_t& i128resultH, int64_t& i128resultL);
+
+ void DecodeTypeRegisterSPECIAL2(Instruction* instr, const int64_t& rd_reg,
+ int64_t& alu_out);
+
+ void DecodeTypeRegisterSPECIAL3(Instruction* instr, const int64_t& rt_reg,
+ int64_t& alu_out);
+
+ void DecodeTypeRegisterSRsType(Instruction* instr, const int32_t& fs_reg,
+ const int64_t& fd_reg);
+
+ void DecodeTypeRegisterDRsType(Instruction* instr, const int32_t& fs_reg,
+ const int64_t& ft_reg, const int32_t& fd_reg);
+
+ void DecodeTypeRegisterWRsType(Instruction* instr, const int32_t& fs_reg,
+ const int32_t& fd_reg, int64_t& alu_out);
+
+ void DecodeTypeRegisterLRsType(Instruction* instr, const int32_t& fs_reg,
+ const int32_t& fd_reg, const int32_t& ft_reg);
// Executing is handled based on the instruction type.
void DecodeTypeRegister(Instruction* instr);

Powered by Google App Engine
This is Rietveld 408576698