diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-18 17:11:43 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-18 17:11:43 -0700 |
commit | a0fed7ea459833c93980dd6937a140db9bdcee8c (patch) | |
tree | 600b94fdec8d13d983e3f510d85ebef4849b4067 /pkg/sentry/arch/arch_aarch64.go | |
parent | 92a00ca91affab8564b8875387758914ddc9785b (diff) | |
parent | 7df936f359766618470ae31a7cbf1b761bd19b59 (diff) |
Merge pull request #2061 from lubinszARM:pr_restart_syscall
PiperOrigin-RevId: 301700868
Diffstat (limited to 'pkg/sentry/arch/arch_aarch64.go')
-rw-r--r-- | pkg/sentry/arch/arch_aarch64.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/arch/arch_aarch64.go b/pkg/sentry/arch/arch_aarch64.go index b998f84fc..c29e1b841 100644 --- a/pkg/sentry/arch/arch_aarch64.go +++ b/pkg/sentry/arch/arch_aarch64.go @@ -100,6 +100,9 @@ type State struct { // FeatureSet is a pointer to the currently active feature set. FeatureSet *cpuid.FeatureSet + + // OrigR0 stores the value of register R0. + OrigR0 uint64 } // Proto returns a protobuf representation of the system registers in State. @@ -150,6 +153,7 @@ func (s *State) Fork() State { aarch64FPState: s.aarch64FPState.fork(), TPValue: s.TPValue, FeatureSet: s.FeatureSet, + OrigR0: s.OrigR0, } } |