diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-07-28 13:27:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-28 13:27:01 +0200 |
| commit | 7acc9f00489f0f9444b8fa2e5068317c0de90f38 (patch) | |
| tree | fb69aea0d7dcd0438701b0b71be3833997ecabef /miasm2/arch/arm/jit.py | |
| parent | bb1cc452ca771ea6800ccfebd4c45237ba9a7554 (diff) | |
| parent | ab0cf7308e9fb0c5ddeb2e49da75193cd7d50304 (diff) | |
| download | miasm-7acc9f00489f0f9444b8fa2e5068317c0de90f38.tar.gz miasm-7acc9f00489f0f9444b8fa2e5068317c0de90f38.zip | |
Merge pull request #803 from commial/feature/linux-env
Feature/linux env
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/arm/jit.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/miasm2/arch/arm/jit.py b/miasm2/arch/arm/jit.py index 2b5dc4cf..267bcea6 100644 --- a/miasm2/arch/arm/jit.py +++ b/miasm2/arch/arm/jit.py @@ -106,6 +106,14 @@ class jitter_arml(Jitter): func_prepare_systemv = func_prepare_stdcall get_arg_n_systemv = get_arg_n_stdcall + def syscall_args_systemv(self, n_args): + args = [self.cpu.R0, self.cpu.R1, self.cpu.R2, self.cpu.R3, + self.cpu.R4, self.cpu.R5][:n_args] + return args + + def syscall_ret_systemv(self, value): + self.cpu.R0 = value + def init_run(self, *args, **kwargs): Jitter.init_run(self, *args, **kwargs) self.cpu.PC = self.pc |