regstate.hh (8113:5c7c804e0645) | regstate.hh (8229:78bf55f23338) |
---|---|
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 | 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 <string> | |
35#include <stdint.h> 36 | 34#include <stdint.h> 35 |
36#include <string> 37 |
|
37class RegState 38{ 39 protected: 40 virtual bool update(int pid) = 0; 41 public: 42 virtual int64_t getRegVal(int num) = 0; 43 virtual int64_t getOldRegVal(int num) = 0; 44}; 45 46#endif | 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 |