Path: blob/main/sys/cddl/dev/kinst/riscv/kinst_isa.h
48375 views
/*1* SPDX-License-Identifier: CDDL 1.02*3* Copyright (c) 2023 The FreeBSD Foundation4*5* This software was developed by Christos Margiolis <[email protected]>6* under sponsorship from the FreeBSD Foundation.7*/89#ifndef _KINST_ISA_H_10#define _KINST_ISA_H_1112#include <machine/riscvreg.h>13#include <machine/encoding.h>1415#define KINST_PATCHVAL MATCH_EBREAK16#define KINST_C_PATCHVAL MATCH_C_EBREAK1718/*19* The trampoline contains [instruction, [nop padding], ebreak].20*/21#define KINST_TRAMP_SIZE 82223typedef uint32_t kinst_patchval_t;2425struct kinst_probe_md {26int instlen; /* original instr len */27bool emulate; /* emulate in sw */28};2930#endif /* _KINST_ISA_H_ */313233