flash/nor/tcl.c: use COMMAND_PARSE_ADDRESS 77/4977/2
authorTomas Vanek <vanekt@fbl.cz>
Wed, 27 Feb 2019 01:31:30 +0000 (02:31 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 12 Mar 2019 06:43:17 +0000 (06:43 +0000)
instead of conditional compilation #if BUILD_TARGET64

Change-Id: I005ae0b3a4ed127c0f59219b1c6b185a2c76c76e
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4977
Tested-by: jenkins
Reviewed-by: Tim Newsome <tim@sifive.com>
src/flash/nor/tcl.c

index 7a402b0..93c4d28 100644 (file)
@@ -486,11 +486,7 @@ COMMAND_HANDLER(handle_flash_fill_command)
        if (CMD_ARGC != 3)
                return ERROR_COMMAND_SYNTAX_ERROR;
 
-#if BUILD_TARGET64
-       COMMAND_PARSE_NUMBER(u64, CMD_ARGV[0], address);
-#else
-       COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
-#endif
+       COMMAND_PARSE_ADDRESS(CMD_ARGV[0], address);
        COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], pattern);
        COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], count);