makes elem_count an explicit parameter for the softvector functions rather than calculating it from vtype

This commit is contained in:
2025-02-04 21:52:59 +01:00
parent 7a048f8b93
commit 512b79a3e7
3 changed files with 25 additions and 23 deletions

View File

@@ -37,6 +37,7 @@
#include "iss/arch_if.h"
#include "iss/vm_types.h"
#include <cstdint>
#include <functional>
#include <stdint.h>
namespace softvector {
@@ -55,6 +56,6 @@ bool softvec_read(void* core, uint64_t addr, uint64_t length, uint8_t* data);
bool softvec_write(void* core, uint64_t addr, uint64_t length, uint8_t* data);
uint64_t vector_load_store(void* core, std::function<bool(void*, uint64_t, uint64_t, uint8_t*)> load_store_fn, uint8_t* V, uint8_t VLEN,
uint8_t vd, uint64_t base_addr, uint64_t vl, uint64_t vstart, vtype_t vtype, bool vm, uint8_t elem_size_byte,
int8_t EMUL_pow, uint8_t segment_size, int64_t stride = 1);
uint64_t elem_count, int8_t EMUL_pow, uint8_t segment_size, int64_t stride);
} // namespace softvector
#endif /* _VM_VECTOR_FUNCTIONS_H_ */