Skip to content

Commit 0d4448a

Browse files
authored
Pass -target arm or -target arm64 to superpmi.exe when replaying in superpmi.py (#43784)
* Pass -target (arm|arm64) argument to superpmi.exe when replaying for arm/arm64 in superpmi.py * Add the -target argument only in altjit in superpmi.py
1 parent 54906ea commit 0d4448a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/coreclr/scripts/superpmi.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,12 @@ def replay(self):
10901090
if self.coreclr_args.spmi_log_file is not None:
10911091
flags += [ "-w", self.coreclr_args.spmi_log_file ]
10921092

1093+
if self.coreclr_args.altjit:
1094+
if self.coreclr_args.arch == "arm":
1095+
flags += [ "-target", "arm" ]
1096+
elif self.coreclr_args.arch == "arm64":
1097+
flags += [ "-target", "arm64" ]
1098+
10931099
# For each MCH file that we are going to replay, do the replay and replay post-processing.
10941100
#
10951101
# Consider: currently, we loop over all the steps for each MCH file, including (1) invoke
@@ -1291,6 +1297,12 @@ def replay_with_asm_diffs(self):
12911297
if self.coreclr_args.spmi_log_file is not None:
12921298
flags += [ "-w", self.coreclr_args.spmi_log_file ]
12931299

1300+
if self.coreclr_args.altjit:
1301+
if self.coreclr_args.arch == "arm":
1302+
flags += [ "-target", "arm" ]
1303+
elif self.coreclr_args.arch == "arm64":
1304+
flags += [ "-target", "arm64" ]
1305+
12941306
# Change the working directory to the Core_Root we will call SuperPMI from.
12951307
# This is done to allow libcoredistools to be loaded correctly on unix
12961308
# as the loadlibrary path will be relative to the current directory.
@@ -3160,4 +3172,4 @@ def main(args):
31603172

31613173
if __name__ == "__main__":
31623174
args = parser.parse_args()
3163-
sys.exit(main(args))
3175+
sys.exit(main(args))

0 commit comments

Comments
 (0)