41 template<
class Allocator,
bool softAes>
51 void*
operator new(
size_t size) {
54 throw std::bad_alloc();
57 void operator delete(
void* ptr) {
Definition bytecode_machine.hpp:108
Definition vm_interpreted.hpp:42
virtual void datasetPrefetch(uint64_t blockNumber)
Definition vm_interpreted.cpp:123
InstructionByteCode bytecode[RANDOMX_PROGRAM_SIZE]
Definition vm_interpreted.hpp:68
void run(void *seed) override
Definition vm_interpreted.cpp:49
void setDataset(randomx_dataset *dataset) override
Definition vm_interpreted.cpp:43
virtual void datasetRead(uint64_t blockNumber, int_reg_t(&r)[RegistersCount])
Definition vm_interpreted.cpp:116
void execute()
Definition vm_interpreted.cpp:56
Definition virtual_machine.hpp:80
uint64_t datasetOffset
Definition virtual_machine.hpp:71
randomx::MemoryRegisters mem
Definition virtual_machine.hpp:65
uint8_t * scratchpad
Definition virtual_machine.hpp:66
randomx::RegisterFile reg
Definition virtual_machine.hpp:63
randomx::ProgramConfiguration config
Definition virtual_machine.hpp:64
randomx_dataset * datasetPtr
Definition virtual_machine.hpp:69
randomx::Program program
Definition virtual_machine.hpp:62
Concept for allocating, resizing and freeing memory block.
const uint8_t seed[32]
Definition code-generator.cpp:37
#define RANDOMX_PROGRAM_SIZE
Definition configuration.h:56
Definition allocator.cpp:35
uint64_t int_reg_t
Definition common.hpp:140
InterpretedVm< LargePageAllocator, false > InterpretedVmLargePageHardAes
Definition vm_interpreted.hpp:74
InterpretedVm< AlignedAllocator< CacheLineSize >, false > InterpretedVmHardAes
Definition vm_interpreted.hpp:72
InterpretedVm< AlignedAllocator< CacheLineSize >, true > InterpretedVmDefault
Definition vm_interpreted.hpp:71
constexpr int RegistersCount
Definition common.hpp:156
InterpretedVm< LargePageAllocator, true > InterpretedVmLargePage
Definition vm_interpreted.hpp:73
unsigned __int64 uint64_t
Definition stdint.h:136
static void * allocMemory(size_t)
Definition allocator.cpp:38
static void freeMemory(void *, size_t)
Definition allocator.cpp:46
Definition bytecode_machine.hpp:46
Definition dataset.hpp:40