From 75447d0623e3e7614a9cf9cdd5ece23d18028cab Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Tue, 24 Mar 2015 02:56:07 -0400 Subject: [PATCH] cmd/7g: fix linux/arm64 build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit REGRT1 and REGRT2 are also reserved on arm64 for runtime (duffzero and duffcopy). Change-Id: If098527a7f29d16f94bdcec05fd55950b9076e35 Signed-off-by: Shenghou Ma Reviewed-on: https://go-review.googlesource.com/7977 Reviewed-by: Aram Hăvărneanu Reviewed-by: Dave Cheney Reviewed-by: Rob Pike --- src/cmd/7g/gsubr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/7g/gsubr.go b/src/cmd/7g/gsubr.go index 0828daf9dde..2d2bdb7ca4c 100644 --- a/src/cmd/7g/gsubr.go +++ b/src/cmd/7g/gsubr.go @@ -45,6 +45,8 @@ var unmappedzero int64 = 4096 var resvd = []int{ arm64.REGTMP, arm64.REGG, + arm64.REGRT1, + arm64.REGRT2, arm64.REG_R31, // REGZERO and REGSP arm64.FREGZERO, arm64.FREGHALF,