This commit is contained in:
Anthony Green
2012-10-11 10:55:25 -04:00
parent d330f19292
commit 048d2f41c3
72 changed files with 13248 additions and 9914 deletions

View File

@@ -750,7 +750,8 @@ ffi_prep_closure_loc (ffi_closure *closure,
void *user_data,
void *codeloc)
{
FFI_ASSERT (cif->abi == FFI_SYSV);
if (cif->abi != FFI_SYSV)
return FFI_BAD_ABI;
#ifndef __s390x__
*(short *)&closure->tramp [0] = 0x0d10; /* basr %r1,0 */