Remove all occurrences of 'mem2array' and 'array2mem'
[fw/openocd] / tcl / cpu / arc / common.tcl
index e9a91571789b9a2dfc0df10e996f9a511d84e204..b31e31a34e2ea6e4ac7a34cf7b63a62cd2285c91 100644 (file)
@@ -29,9 +29,8 @@ proc arc_common_reset { {target ""} } {
         # vector located at the interrupt vector base address, which is the first
         # entry (offset 0x00) in the vector table.
         set int_vector_base [arc jtag get-aux-reg 0x25]
-        set start_pc ""
-        mem2array start_pc 32 $int_vector_base 1
-        arc jtag set-aux-reg 0x6 $start_pc(0)
+        set start_pc [read_memory $int_vector_base 32 1]
+        arc jtag set-aux-reg 0x6 $start_pc
 
         # It is OK to do uncached writes - register cache will be invalidated by
         # the reset_assert() function.