]> git.proxmox.com Git - qemu.git/blobdiff - tcg-runtime.c
guest-agent: only enable FSFREEZE when it's supported by the kernel
[qemu.git] / tcg-runtime.c
index 219cade429b126c8a0458db2bcac6b7e6ed843b6..abfc36498f8e82a2a13a64e05516d898eec8e19f 100644 (file)
 
 #include "tcg/tcg-runtime.h"
 
+/* 32-bit helpers */
+
+int32_t tcg_helper_div_i32(int32_t arg1, int32_t arg2)
+{
+    return arg1 / arg2;
+}
+
+int32_t tcg_helper_rem_i32(int32_t arg1, int32_t arg2)
+{
+    return arg1 % arg2;
+}
+
+uint32_t tcg_helper_divu_i32(uint32_t arg1, uint32_t arg2)
+{
+    return arg1 / arg2;
+}
+
+uint32_t tcg_helper_remu_i32(uint32_t arg1, uint32_t arg2)
+{
+    return arg1 % arg2;
+}
+
+/* 64-bit helpers */
+
 int64_t tcg_helper_shl_i64(int64_t arg1, int64_t arg2)
 {
     return arg1 << arg2;