summaryrefslogtreecommitdiff
path: root/libgo/go/syscall/syscall_linux_mipsx.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/syscall/syscall_linux_mipsx.go')
-rw-r--r--libgo/go/syscall/syscall_linux_mipsx.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/go/syscall/syscall_linux_mipsx.go b/libgo/go/syscall/syscall_linux_mipsx.go
new file mode 100644
index 00000000000..af319ac345f
--- /dev/null
+++ b/libgo/go/syscall/syscall_linux_mipsx.go
@@ -0,0 +1,12 @@
+// Copyright 2016 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build linux
+// +build mips mipsle
+
+package syscall
+
+func (r *PtraceRegs) PC() uint64 { return uint64(r.Regs[64]) }
+
+func (r *PtraceRegs) SetPC(pc uint64) { r.Regs[64] = uint32(pc) }