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

Unified Diff: runtime/vm/simulator_mips.h

Issue 12519007: Adds MIPS instructions to simulator, assembler, disassembler (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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: runtime/vm/simulator_mips.h
===================================================================
--- runtime/vm/simulator_mips.h (revision 19730)
+++ runtime/vm/simulator_mips.h (working copy)
@@ -75,6 +75,11 @@
int icount_;
bool delay_slot_;
+ // Illegal memory access support.
+ static bool IsIllegalAddress(uword addr) {
+ return addr < 64*1024;
+ }
+
bool OverflowFrom(int32_t alu_out,
int32_t left,
int32_t right,
@@ -84,8 +89,19 @@
void Format(Instr* instr, const char* format);
+ inline int8_t ReadB(uword addr);
+ inline uint8_t ReadBU(uword addr);
+ inline int16_t ReadH(uword addr, Instr* instr);
+ inline uint16_t ReadHU(uword addr, Instr *instr);
+ inline int ReadW(uword addr, Instr* instr);
+
+ inline void WriteB(uword addr, uint8_t value);
+ inline void WriteH(uword addr, uint16_t value, Instr* isntr);
+ inline void WriteW(uword addr, int value, Instr* instr);
+
void DecodeSpecial(Instr* instr);
void DecodeSpecial2(Instr* instr);
+ void DecodeSpecial3(Instr *instr);
void InstructionDecode(Instr* instr);
void Execute();

Powered by Google App Engine
This is Rietveld 408576698