1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Gabe Black 29 */ 30 31#ifndef REGSTATE_H 32#define REGSTATE_H 33 |
34#include <stdint.h> 35 |
36#include <string> 37 |
38class RegState 39{ 40 protected: 41 virtual bool update(int pid) = 0; 42 public: 43 virtual int64_t getRegVal(int num) = 0; 44 virtual int64_t getOldRegVal(int num) = 0; 45}; 46 47#endif |