diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2017-04-06 14:36:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-06 14:36:01 +0200 |
| commit | 049abdc867f533ba270cbdfff839caefb9b162b9 (patch) | |
| tree | 419067643408bed0acc81529791f714150ddf644 /test/arch/x86/qemu/testqemu.py | |
| parent | b1ed94019554b25d4d8924594f8868318e8a8c4a (diff) | |
| parent | b535f6e26e354ca61307f8153b862385ba9d2a04 (diff) | |
| download | miasm-049abdc867f533ba270cbdfff839caefb9b162b9.tar.gz miasm-049abdc867f533ba270cbdfff839caefb9b162b9.zip | |
Merge pull request #515 from commial/feature/calling-conv-systemv
Feature/calling conv systemv
Diffstat (limited to 'test/arch/x86/qemu/testqemu.py')
| -rw-r--r-- | test/arch/x86/qemu/testqemu.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/arch/x86/qemu/testqemu.py b/test/arch/x86/qemu/testqemu.py index 5f26d6f3..e6c487f2 100644 --- a/test/arch/x86/qemu/testqemu.py +++ b/test/arch/x86/qemu/testqemu.py @@ -40,7 +40,7 @@ nb_tests = 1 def xxx___printf_chk(jitter): """Tiny implementation of printf_chk""" global nb_tests - ret_ad, args = jitter.func_args_cdecl(["out", "format"]) + ret_ad, args = jitter.func_args_systemv(["out", "format"]) if args.out != 1: raise RuntimeError("Not implemented") fmt = jitter.get_str_ansi(args.format) @@ -89,7 +89,7 @@ def xxx___printf_chk(jitter): sys.stdout.write("[%d] %s" % (nb_tests, output)) nb_tests += 1 - jitter.func_ret_cdecl(ret_ad, 0) + jitter.func_ret_systemv(ret_ad, 0) def xxx_puts(jitter): ''' @@ -98,7 +98,7 @@ def xxx_puts(jitter): writes the string s and a trailing newline to stdout. ''' - ret_addr, args = jitter.func_args_cdecl(['target']) + ret_addr, args = jitter.func_args_systemv(['target']) output = jitter.get_str_ansi(args.target) # Check with expected result line = expected.next() @@ -106,7 +106,7 @@ def xxx_puts(jitter): print "Expected:", line print "Obtained:", output raise RuntimeError("Bad semantic") - return jitter.func_ret_cdecl(ret_addr, 1) + return jitter.func_ret_systemv(ret_addr, 1) # Parse arguments parser = Sandbox_Linux_x86_32.parser(description="ELF sandboxer") |