Unified · Split
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | /*************************************************************/ |
| 2 | 2 | /* |
| 3 | − * RISCV64 dummy assembler for TCC | |
| 3 | + * RISCV64 assembler for TCC | |
| 4 | 4 | * |
| 5 | 5 | */ |
| 6 | 6 | |
| @@ -19,11 +19,6 @@ ST_FUNC void gen_le32(int c); · 12 unmodified lines | ||
| 19 | 19 | #define USING_GLOBALS |
| 20 | 20 | #include "tcc.h" |
| 21 | 21 | |
| 22 | −static void asm_error(void) | |
| 23 | −{ | |
| 24 | − tcc_error("RISCV64 asm not implemented."); | |
| 25 | −} | |
| 26 | − | |
| 27 | 22 | /* XXX: make it faster ? */ |
| 28 | 23 | ST_FUNC void g(int c) |
| 29 | 24 | { |
| @@ -56,12 +51,12 @@ ST_FUNC void gen_expr32(ExprValue *pe) · 26 unmodified lines | ||
| 56 | 51 | |
| 57 | 52 | ST_FUNC void asm_opcode(TCCState *s1, int opcode) |
| 58 | 53 | { |
| 59 | − asm_error(); | |
| 54 | + tcc_error("RISCV64 asm not implemented."); | |
| 60 | 55 | } |
| 61 | 56 | |
| 62 | 57 | ST_FUNC void subst_asm_operand(CString *add_str, SValue *sv, int modifier) |
| 63 | 58 | { |
| 64 | − asm_error(); | |
| 59 | + tcc_error("RISCV64 asm not implemented."); | |
| 65 | 60 | } |
| 66 | 61 | |
| 67 | 62 | /* generate prolog and epilog code for asm statement */ |
| @@ -81,12 +76,12 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands, · 13 unmodified lines | ||
| 81 | 76 | |
| 82 | 77 | ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str) |
| 83 | 78 | { |
| 84 | − asm_error(); | |
| 79 | + tcc_error("RISCV64 asm not implemented."); | |
| 85 | 80 | } |
| 86 | 81 | |
| 87 | 82 | ST_FUNC int asm_parse_regvar (int t) |
| 88 | 83 | { |
| 89 | − asm_error(); | |
| 84 | + tcc_error("RISCV64 asm not implemented."); | |
| 90 | 85 | return -1; |
| 91 | 86 | } |
| 92 | 87 | |