16 #define XTENSA_SYSCALL(x) XT_INS_BREAK(x, 1, 14)
17 #define XTENSA_SYSCALL_SZ 3
18 #define XTENSA_SYSCALL_LEN_MAX 255
50 uint8_t brk_insn_buf[
sizeof(uint32_t)] = {0};
56 (uint8_t *)brk_insn_buf);
58 LOG_ERROR(
"Failed to read break instruction!");
73 LOG_ERROR(
"File-I/O data structure uninitialized");
89 syscall, arg0, arg1, arg2, arg3);
162 LOG_INFO(
"File-I/O: syscall unknown (%d), pc=0x%08X",
178 retcode, fileio_errno, ctrl_c ?
"true" :
"false");
184 if (fileio_errno != 4) {
static uint32_t buf_get_u32(const uint8_t *_buffer, unsigned int first, unsigned int num)
Retrieves num bits from _buffer, starting at the first bit, returning the bits in a 32-bit word.
#define XTENSA_SYSCALL_OP_REG
#define XTENSA_SYSCALL_RETVAL_REG
#define XTENSA_SYSCALL_ERRNO_REG
#define LOG_TARGET_ERROR(target, fmt_str,...)
#define LOG_TARGET_DEBUG(target, fmt_str,...)
#define LOG_ERROR(expr ...)
#define LOG_INFO(expr ...)
struct gdb_fileio_info * fileio_info
Represents a generic Xtensa core.
int target_read_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer)
Read count items of size bytes from the memory of target at the address given.
void xtensa_reg_set_deep_relgen(struct target *target, enum xtensa_reg_id a_idx, xtensa_reg_val_t value)
uint32_t xtensa_cause_get(struct target *target)
void xtensa_reg_set(struct target *target, enum xtensa_reg_id reg_id, xtensa_reg_val_t value)
xtensa_reg_val_t xtensa_reg_get(struct target *target, enum xtensa_reg_id reg_id)
Holds the interface to Xtensa cores.
static struct xtensa * target_to_xtensa(struct target *target)
#define XTENSA_SYSCALL_LEN_MAX
int xtensa_fileio_detect_proc(struct target *target)
Checks for and processes an Xtensa File-IO request.
#define XTENSA_SYSCALL(x)
int xtensa_gdb_fileio_end(struct target *target, int retcode, int fileio_errno, bool ctrl_c)
int xtensa_get_gdb_fileio_info(struct target *target, struct gdb_fileio_info *fileio_info)
#define XTENSA_SYSCALL_SZ
int xtensa_fileio_init(struct target *target)
#define XTENSA_SYSCALL_READ
#define XTENSA_SYSCALL_UNLINK
#define XTENSA_SYSCALL_STAT
#define XTENSA_SYSCALL_RENAME
#define XTENSA_SYSCALL_SYSTEM
#define XTENSA_SYSCALL_CLOSE
#define XTENSA_SYSCALL_WRITE
#define XTENSA_SYSCALL_LSEEK
#define XTENSA_SYSCALL_GETTIMEOFDAY
#define XTENSA_SYSCALL_ISATTY
#define XTENSA_SYSCALL_FSTAT
#define XTENSA_SYSCALL_OPEN
uint32_t xtensa_reg_val_t