@@ -42,7 +42,7 @@ static char *opt_prog_name;
4242/* target argc and argv */
4343static int prog_argc ;
4444static char * * prog_args ;
45- static const char * optstr = "tgqmhpd:a:k:i:b: " ;
45+ static const char * optstr = "tgqmhpd:a:k:i:" ;
4646
4747/* enable misaligned memory access */
4848static bool opt_misaligned = false;
@@ -55,7 +55,6 @@ static char *prof_out_file;
5555/* Linux kernel data */
5656static char * opt_kernel_img ;
5757static char * opt_rootfs_img ;
58- static char * opt_dtb ;
5958#endif
6059
6160static void print_usage (const char * filename )
@@ -73,7 +72,6 @@ static void print_usage(const char *filename)
7372#if RV32_HAS (SYSTEM ) && !RV32_HAS (ELF_LOADER )
7473 " -k <image> : use <image> as kernel image\n"
7574 " -i <image> : use <image> as rootfs\n"
76- " -b <dtb> : use <dtb> as device tree blob\n"
7775#endif
7876 " -d [filename]: dump registers as JSON to the "
7977 "given file or `-` (STDOUT)\n"
@@ -114,10 +112,6 @@ static bool parse_args(int argc, char **args)
114112 opt_rootfs_img = optarg ;
115113 emu_argc ++ ;
116114 break ;
117- case 'b' :
118- opt_dtb = optarg ;
119- emu_argc ++ ;
120- break ;
121115#endif
122116 case 'q' :
123117 opt_quiet_outputs = true;
@@ -263,7 +257,6 @@ int main(int argc, char **args)
263257#if RV32_HAS (SYSTEM ) && !RV32_HAS (ELF_LOADER )
264258 attr .data .system .kernel = opt_kernel_img ;
265259 attr .data .system .initrd = opt_rootfs_img ;
266- attr .data .system .dtb = opt_dtb ;
267260#else
268261 attr .data .user .elf_program = opt_prog_name ;
269262#endif
0 commit comments