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

Unified Diff: runtime/vm/simulator_mips.h

Issue 14206002: Adds some floating point instructions to MIPS simulator, assembler, disassembler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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: runtime/vm/simulator_mips.h
===================================================================
--- runtime/vm/simulator_mips.h (revision 21293)
+++ runtime/vm/simulator_mips.h (working copy)
@@ -39,9 +39,17 @@
int32_t get_register(Register reg) const;
// Accessors for floating point register state.
- void set_fregister(FRegister freg, double value);
- double get_fregister(FRegister) const;
+ void set_fregister(FRegister freg, int32_t value);
+ void set_fregister_float(FRegister freg, float value);
+ void set_fregister_double(FRegister freg, double value);
+ void set_fregister_long(FRegister freg, int64_t value);
+ int32_t get_fregister(FRegister freg) const;
+ float get_fregister_float(FRegister freg) const;
+ double get_fregister_double(FRegister freg) const;
+ int64_t get_fregister_long(FRegister freg) const;
+
+
// Accessor for the pc.
void set_pc(int32_t value) { pc_ = value; }
int32_t get_pc() const { return pc_; }
@@ -93,7 +101,7 @@
int32_t lo_reg_;
int32_t registers_[kNumberOfCpuRegisters];
- double fregisters_[kNumberOfFRegisters];
+ int32_t fregisters_[kNumberOfFRegisters];
uword pc_;
// Simulator support.
@@ -138,12 +146,16 @@
inline void WriteH(uword addr, uint16_t value, Instr* isntr);
inline void WriteW(uword addr, int value, Instr* instr);
+ inline double ReadD(uword addr, Instr* instr);
+ inline void WriteD(uword addr, double value, Instr* instr);
+
void DoBranch(Instr* instr, bool taken, bool likely);
void DoBreak(Instr *instr);
void DecodeSpecial(Instr* instr);
void DecodeSpecial2(Instr* instr);
void DecodeRegImm(Instr* instr);
+ void DecodeCop1(Instr* instr);
void InstructionDecode(Instr* instr);
void Execute();

Powered by Google App Engine
This is Rietveld 408576698