Make write via waiting buf

This commit is contained in:
2026-04-12 16:33:57 +03:00
parent d039b9a5b8
commit 65e7b45861
3 changed files with 12 additions and 46 deletions

View File

@@ -5,6 +5,7 @@
#include "runner.h"
#include "addrs.h"
#include "mem.h"
#include "instr.h"
#include <libhmmmm/config.h>
#include <libhmmmm/device.h>
#include <libhmmmm/mem.h>
@@ -28,7 +29,9 @@ typedef struct
} device_specs_t;
typedef struct
{
{
prog_counter_t* pc;
instr_h_func* instr;
device_mem_t* deviceMem;
device_specs_t* specs;
} device_info_t;
@@ -42,6 +45,11 @@ uint8_t makeDeviceTick(device_public_context_t* devContext);
device_mem_t* genDevMem(device_specs_t* devSpec, char* errbuf);
size_t pubExtractPcounter(device_public_context_t* devContext);
size_t pubExtractOpcode(device_mem_t* devMem, size_t _programCounter);
void* pubExtractPcounterPtr(device_public_context_t* devContext);
uint8_t pubExtractPcounterSizeWords();
device_specs_t* parseSpecsFromConfig(const conf_dev_t* devConf, char* errbuf);
void fillSmartReadSpecs(device_specs_t* specs, smart_read_spec_t* smartReadSpecs, uint64_t smartReadSpecsCount);
void fillSmartWriteSpecs(device_specs_t* specs, smart_write_spec_t* smartWriteSpecs, uint64_t smartWriteSpecsCount);