| Index: src/a64/simulator-a64.h
|
| diff --git a/src/a64/simulator-a64.h b/src/a64/simulator-a64.h
|
| index 535f287096a317e9ce157b17c033f2184399d0ed..beac0c8f7546694c89f2d2e5a30a89e2ef6283a3 100644
|
| --- a/src/a64/simulator-a64.h
|
| +++ b/src/a64/simulator-a64.h
|
| @@ -321,7 +321,7 @@ class Simulator : public DecoderVisitor {
|
| template <typename T>
|
| void set_pc(T new_pc) {
|
| ASSERT(sizeof(T) == sizeof(pc_));
|
| - memcpy(&pc_, &new_pc, sizeof(T));
|
| + *reinterpret_cast<T*>(&pc_) = new_pc;
|
| pc_modified_ = true;
|
| }
|
| Instruction* pc() { return pc_; }
|
|
|