ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
Buffer for reading data from memory while instructions are being fetched. More...
#include <Instruction.h>
Public Member Functions | |
Buffer () | |
Buffer (const Buffer &o) | |
Buffer (Buffer &&o) | |
Buffer (unsigned intcount) | |
Buffer (unsigned intcount, I val) | |
~Buffer () | |
Buffer & | operator= (const Buffer &o) |
Buffer & | operator= (Buffer &&o) |
void | clear () |
char * | internalBuffer () |
get the internal buffer More... | |
unsigned | internalBufferSize () |
I | data () |
void | recoverFromEndianness (unsigned alignment, endian_t endianness) |
changes byte positions as needed to resove endiannes incompabilities after using the internal buffer to write More... | |
Public Attributes | |
I * | d_ |
unsigned | intcount_ |
Buffer for reading data from memory while instructions are being fetched.
Definition at line 92 of file Instruction.h.
|
inline |
Definition at line 97 of file Instruction.h.
|
inline |
Definition at line 98 of file Instruction.h.
|
inline |
Definition at line 101 of file Instruction.h.
|
inline |
Definition at line 104 of file Instruction.h.
|
inline |
Definition at line 107 of file Instruction.h.
References d_.
|
inline |
Definition at line 110 of file Instruction.h.
References clear().
|
inline |
Definition at line 130 of file Instruction.h.
References d_.
Referenced by operator=(), and ~Buffer().
|
inline |
Definition at line 144 of file Instruction.h.
References d_.
Referenced by etiss::CPUArch::compensateEndianess(), etiss::Translation::disasm(), and etiss::Translation::translateBlock().
char * etiss::instr::Buffer::internalBuffer | ( | ) |
get the internal buffer
Definition at line 69 of file Instruction.cpp.
References d_.
Referenced by etiss::Translation::disasm(), and etiss::Translation::translateBlock().
unsigned etiss::instr::Buffer::internalBufferSize | ( | ) |
Definition at line 73 of file Instruction.cpp.
References intcount_.
Definition at line 122 of file Instruction.h.
References clear(), d_, and intcount_.
Definition at line 114 of file Instruction.h.
void etiss::instr::Buffer::recoverFromEndianness | ( | unsigned | alignment, |
endian_t | endianness | ||
) |
changes byte positions as needed to resove endiannes incompabilities after using the internal buffer to write
Definition at line 78 of file Instruction.cpp.
References d_, ETISS_SRCLOC, etiss::FATALERROR, etiss::getEndianness(), int8_t, intcount_, and etiss::log().
Referenced by etiss::CPUArch::compensateEndianess().
I* etiss::instr::Buffer::d_ |
Definition at line 94 of file Instruction.h.
Referenced by Buffer(), clear(), data(), internalBuffer(), operator=(), and recoverFromEndianness().
unsigned etiss::instr::Buffer::intcount_ |
Definition at line 95 of file Instruction.h.
Referenced by Buffer(), internalBufferSize(), operator=(), and recoverFromEndianness().