From 1ac75f06add54089e4910ecb6a97198336155c63 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 17 Jan 2017 19:04:37 +0100 Subject: executor: fix copyin of values Currently non-bitfield values are copied incorrectly. Probably all turned into zeros or something. Fix that. Add test. --- executor/test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'executor/test.go') diff --git a/executor/test.go b/executor/test.go index 09a1c130b..e9709b8d0 100644 --- a/executor/test.go +++ b/executor/test.go @@ -5,9 +5,14 @@ package executor +// int test_copyin(); // int test_kvm(); import "C" +func testCopyin() int { + return int(C.test_copyin()) +} + func testKVM() int { return int(C.test_kvm()) } -- cgit mrf-deployment