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

Unified Diff: src/simulator-arm.h

Issue 8830: Get the ARM simulator to throw an exception on unaligned accesses. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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
« no previous file with comments | « no previous file | src/simulator-arm.cc » ('j') | src/simulator-arm.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/simulator-arm.h
===================================================================
--- src/simulator-arm.h (revision 620)
+++ src/simulator-arm.h (working copy)
@@ -147,6 +147,20 @@
void HandleRList(Instr* instr, bool load);
void SoftwareInterrupt(Instr* instr);
+ // Read and write memory.
+ inline uint8_t ReadBU(int32_t addr);
+ inline int8_t ReadB(int32_t addr);
+ inline void WriteB(int32_t addr, uint8_t value);
+ inline void WriteB(int32_t addr, int8_t value);
+
+ inline uint16_t ReadHU(int32_t addr);
+ inline int16_t ReadH(int32_t addr);
+ inline void WriteH(int32_t addr, uint16_t value);
+ inline void WriteH(int32_t addr, int16_t value);
+
+ inline int ReadW(int32_t addr);
+ inline void WriteW(int32_t addr, int value);
+
// Executing is handled based on the instruction type.
void DecodeType01(Instr* instr); // both type 0 and type 1 rolled into one
void DecodeType2(Instr* instr);
« no previous file with comments | « no previous file | src/simulator-arm.cc » ('j') | src/simulator-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698