> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 21:49:52 up 22:05, 2 users, load average: 0.53, 0.61, 0.73
This commit is contained in:
parent
fed7bc355d
commit
4290e11bc7
3 changed files with 2 additions and 3110 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -24,6 +24,7 @@
|
||||||
#include <readline/readline.h>
|
#include <readline/readline.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <addrexp.h>
|
#include <addrexp.h>
|
||||||
|
#include <addrexp_lex.h>
|
||||||
|
|
||||||
static int is_batch_mode = false;
|
static int is_batch_mode = false;
|
||||||
|
|
||||||
|
@ -134,6 +135,7 @@ static paddr_t parse_expr(const char *arg, bool *success) {
|
||||||
// FIXME: We cannot use `parse_uint` here, it accept `-1234` as input
|
// FIXME: We cannot use `parse_uint` here, it accept `-1234` as input
|
||||||
// paddr_t addr = parse_uint(arg, &res);
|
// paddr_t addr = parse_uint(arg, &res);
|
||||||
// *success = res;
|
// *success = res;
|
||||||
|
yy_scan_string(arg);
|
||||||
paddr_t addr;
|
paddr_t addr;
|
||||||
*success = yyparse(&addr);
|
*success = yyparse(&addr);
|
||||||
return addr;
|
return addr;
|
||||||
|
|
Loading…
Reference in a new issue