summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUbuntu <[email protected]>2022-05-03 02:59:50 +0000
committerUbuntu <[email protected]>2022-05-03 02:59:50 +0000
commit745b9186ef58c0b7ea53db1f1740cb864f9b697c (patch)
tree15b901ce5eee33c6e6febd422d487d2f0ee97a4c
parent2bf571eb16f17ef9be5bb0d55313ec8a120315bf (diff)
now control flow could reach uiret
-rw-r--r--.vscode/configurationCache.log2
-rw-r--r--.vscode/dryrun.log1
-rw-r--r--.vscode/targets.log159
-rw-r--r--target/i386/tcg/misc_helper.c9
-rw-r--r--target/i386/tcg/seg_helper.c52
-rw-r--r--target/i386/tcg/sysemu/misc_helper.c4
-rw-r--r--target/i386/tcg/translate.c20
7 files changed, 147 insertions, 100 deletions
diff --git a/.vscode/configurationCache.log b/.vscode/configurationCache.log
index 20dd589789..2718d1734e 100644
--- a/.vscode/configurationCache.log
+++ b/.vscode/configurationCache.log
@@ -1 +1 @@
-{"buildTargets":["/home/xcd/qemu_uintr/qemu/docker-src.2022-05-02-13.12.42.189499","FORCE","Makefile","TAGS","all","check-help","clean","config-host.mak","configure","cscope","ctags","dist","distclean","docker","docker-all-tests","docker-clean","docker-exec-copy-test","docker-help","docker-image","docker-image-alpine","docker-image-debian-all-test-cross","docker-image-debian-alpha-cross","docker-image-debian-amd64","docker-image-debian-armel-cross","docker-image-debian-armhf-cross","docker-image-debian-hexagon-cross","docker-image-debian-hppa-cross","docker-image-debian-m68k-cross","docker-image-debian-microblaze-cross","docker-image-debian-mips-cross","docker-image-debian-mips64-cross","docker-image-debian-mips64el-cross","docker-image-debian-mipsel-cross","docker-image-debian-native","docker-image-debian-nios2-cross","docker-image-debian-powerpc-test-cross","docker-image-debian-ppc64el-cross","docker-image-debian-riscv64-test-cross","docker-image-debian-sh4-cross","docker-image-debian-sparc64-cross","docker-image-debian-tricore-cross","docker-image-debian10","docker-image-debian11","docker-qemu-src","docker-run","docker-test","docker-test-block","docker-test-block@alpine","docker-test-block@centos8","docker-test-block@debian-all-test-cross","docker-test-block@debian-amd64","docker-test-block@debian-arm64-cross","docker-test-block@debian-armel-cross","docker-test-block@debian-armhf-cross","docker-test-block@debian-hexagon-cross","docker-test-block@debian-mips-cross","docker-test-block@debian-mips64el-cross","docker-test-block@debian-mipsel-cross","docker-test-block@debian-native","docker-test-block@debian-ppc64el-cross","docker-test-block@debian-riscv64-cross","docker-test-block@debian-s390x-cross","docker-test-block@fedora","docker-test-block@fedora-i386-cross","docker-test-block@fedora-win32-cross","docker-test-block@fedora-win64-cross","docker-test-block@opensuse-leap","docker-test-block@python","docker-test-block@ubuntu1804","docker-test-block@ubuntu2004","docker-test-build","docker-test-build@alpine","docker-test-build@centos8","docker-test-build@debian-all-test-cross","docker-test-build@debian-amd64","docker-test-build@debian-arm64-cross","docker-test-build@debian-armel-cross","docker-test-build@debian-armhf-cross","docker-test-build@debian-hexagon-cross","docker-test-build@debian-mips-cross","docker-test-build@debian-mips64el-cross","docker-test-build@debian-mipsel-cross","docker-test-build@debian-native","docker-test-build@debian-ppc64el-cross","docker-test-build@debian-riscv64-cross","docker-test-build@debian-s390x-cross","docker-test-build@fedora","docker-test-build@fedora-i386-cross","docker-test-build@fedora-win32-cross","docker-test-build@fedora-win64-cross","docker-test-build@opensuse-leap","docker-test-build@python","docker-test-build@ubuntu1804","docker-test-build@ubuntu2004","docker-test-clang","docker-test-clang@alpine","docker-test-clang@centos8","docker-test-clang@debian-all-test-cross","docker-test-clang@debian-amd64","docker-test-clang@debian-arm64-cross","docker-test-clang@debian-armel-cross","docker-test-clang@debian-armhf-cross","docker-test-clang@debian-hexagon-cross","docker-test-clang@debian-mips-cross","docker-test-clang@debian-mips64el-cross","docker-test-clang@debian-mipsel-cross","docker-test-clang@debian-native","docker-test-clang@debian-ppc64el-cross","docker-test-clang@debian-riscv64-cross","docker-test-clang@debian-s390x-cross","docker-test-clang@fedora","docker-test-clang@fedora-i386-cross","docker-test-clang@fedora-win32-cross","docker-test-clang@fedora-win64-cross","docker-test-clang@opensuse-leap","docker-test-clang@python","docker-test-clang@ubuntu1804","docker-test-clang@ubuntu2004","docker-test-debug","docker-test-debug@alpine","docker-test-debug@centos8","docker-test-debug@debian-all-test-cross","docker-test-debug@debian-amd64","docker-test-debug@debian-arm64-cross","docker-test-debug@debian-armel-cross","docker-test-debug@debian-armhf-cross","docker-test-debug@debian-hexagon-cross","docker-test-debug@debian-mips-cross","docker-test-debug@debian-mips64el-cross","docker-test-debug@debian-mipsel-cross","docker-test-debug@debian-native","docker-test-debug@debian-ppc64el-cross","docker-test-debug@debian-riscv64-cross","docker-test-debug@debian-s390x-cross","docker-test-debug@fedora","docker-test-debug@fedora-i386-cross","docker-test-debug@fedora-win32-cross","docker-test-debug@fedora-win64-cross","docker-test-debug@opensuse-leap","docker-test-debug@python","docker-test-debug@ubuntu1804","docker-test-debug@ubuntu2004","docker-test-full","docker-test-full@alpine","docker-test-full@centos8","docker-test-full@debian-all-test-cross","docker-test-full@debian-amd64","docker-test-full@debian-arm64-cross","docker-test-full@debian-armel-cross","docker-test-full@debian-armhf-cross","docker-test-full@debian-hexagon-cross","docker-test-full@debian-mips-cross","docker-test-full@debian-mips64el-cross","docker-test-full@debian-mipsel-cross","docker-test-full@debian-native","docker-test-full@debian-ppc64el-cross","docker-test-full@debian-riscv64-cross","docker-test-full@debian-s390x-cross","docker-test-full@fedora","docker-test-full@fedora-i386-cross","docker-test-full@fedora-win32-cross","docker-test-full@fedora-win64-cross","docker-test-full@opensuse-leap","docker-test-full@python","docker-test-full@ubuntu1804","docker-test-full@ubuntu2004","docker-test-mingw","docker-test-mingw@alpine","docker-test-mingw@centos8","docker-test-mingw@debian-all-test-cross","docker-test-mingw@debian-amd64","docker-test-mingw@debian-arm64-cross","docker-test-mingw@debian-armel-cross","docker-test-mingw@debian-armhf-cross","docker-test-mingw@debian-hexagon-cross","docker-test-mingw@debian-mips-cross","docker-test-mingw@debian-mips64el-cross","docker-test-mingw@debian-mipsel-cross","docker-test-mingw@debian-native","docker-test-mingw@debian-ppc64el-cross","docker-test-mingw@debian-riscv64-cross","docker-test-mingw@debian-s390x-cross","docker-test-mingw@fedora","docker-test-mingw@fedora-i386-cross","docker-test-mingw@fedora-win32-cross","docker-test-mingw@fedora-win64-cross","docker-test-mingw@opensuse-leap","docker-test-mingw@python","docker-test-mingw@ubuntu1804","docker-test-mingw@ubuntu2004","docker-test-misc","docker-test-misc@alpine","docker-test-misc@centos8","docker-test-misc@debian-all-test-cross","docker-test-misc@debian-amd64","docker-test-misc@debian-arm64-cross","docker-test-misc@debian-armel-cross","docker-test-misc@debian-armhf-cross","docker-test-misc@debian-hexagon-cross","docker-test-misc@debian-mips-cross","docker-test-misc@debian-mips64el-cross","docker-test-misc@debian-mipsel-cross","docker-test-misc@debian-native","docker-test-misc@debian-ppc64el-cross","docker-test-misc@debian-riscv64-cross","docker-test-misc@debian-s390x-cross","docker-test-misc@fedora","docker-test-misc@fedora-i386-cross","docker-test-misc@fedora-win32-cross","docker-test-misc@fedora-win64-cross","docker-test-misc@opensuse-leap","docker-test-misc@python","docker-test-misc@ubuntu1804","docker-test-misc@ubuntu2004","docker-test-quick","docker-test-quick@alpine","docker-test-quick@centos8","docker-test-quick@debian-all-test-cross","docker-test-quick@debian-amd64","docker-test-quick@debian-arm64-cross","docker-test-quick@debian-armel-cross","docker-test-quick@debian-armhf-cross","docker-test-quick@debian-hexagon-cross","docker-test-quick@debian-mips-cross","docker-test-quick@debian-mips64el-cross","docker-test-quick@debian-mipsel-cross","docker-test-quick@debian-native","docker-test-quick@debian-ppc64el-cross","docker-test-quick@debian-riscv64-cross","docker-test-quick@debian-s390x-cross","docker-test-quick@fedora","docker-test-quick@fedora-i386-cross","docker-test-quick@fedora-win32-cross","docker-test-quick@fedora-win64-cross","docker-test-quick@opensuse-leap","docker-test-quick@python","docker-test-quick@ubuntu1804","docker-test-quick@ubuntu2004","docker-test-static","docker-test-static@alpine","docker-test-static@centos8","docker-test-static@debian-all-test-cross","docker-test-static@debian-amd64","docker-test-static@debian-arm64-cross","docker-test-static@debian-armel-cross","docker-test-static@debian-armhf-cross","docker-test-static@debian-hexagon-cross","docker-test-static@debian-mips-cross","docker-test-static@debian-mips64el-cross","docker-test-static@debian-mipsel-cross","docker-test-static@debian-native","docker-test-static@debian-ppc64el-cross","docker-test-static@debian-riscv64-cross","docker-test-static@debian-s390x-cross","docker-test-static@fedora","docker-test-static@fedora-i386-cross","docker-test-static@fedora-win32-cross","docker-test-static@fedora-win64-cross","docker-test-static@opensuse-leap","docker-test-static@python","docker-test-static@ubuntu1804","docker-test-static@ubuntu2004","docker-test-tcg","docker-test-tcg@alpine","docker-test-tcg@centos8","docker-test-tcg@debian-all-test-cross","docker-test-tcg@debian-amd64","docker-test-tcg@debian-arm64-cross","docker-test-tcg@debian-armel-cross","docker-test-tcg@debian-armhf-cross","docker-test-tcg@debian-hexagon-cross","docker-test-tcg@debian-mips-cross","docker-test-tcg@debian-mips64el-cross","docker-test-tcg@debian-mipsel-cross","docker-test-tcg@debian-native","docker-test-tcg@debian-ppc64el-cross","docker-test-tcg@debian-riscv64-cross","docker-test-tcg@debian-s390x-cross","docker-test-tcg@fedora","docker-test-tcg@fedora-i386-cross","docker-test-tcg@fedora-win32-cross","docker-test-tcg@fedora-win64-cross","docker-test-tcg@opensuse-leap","docker-test-tcg@python","docker-test-tcg@ubuntu1804","docker-test-tcg@ubuntu2004","docker-test-tsan","docker-test-tsan@alpine","docker-test-tsan@centos8","docker-test-tsan@debian-all-test-cross","docker-test-tsan@debian-amd64","docker-test-tsan@debian-arm64-cross","docker-test-tsan@debian-armel-cross","docker-test-tsan@debian-armhf-cross","docker-test-tsan@debian-hexagon-cross","docker-test-tsan@debian-mips-cross","docker-test-tsan@debian-mips64el-cross","docker-test-tsan@debian-mipsel-cross","docker-test-tsan@debian-native","docker-test-tsan@debian-ppc64el-cross","docker-test-tsan@debian-riscv64-cross","docker-test-tsan@debian-s390x-cross","docker-test-tsan@fedora","docker-test-tsan@fedora-i386-cross","docker-test-tsan@fedora-win32-cross","docker-test-tsan@fedora-win64-cross","docker-test-tsan@opensuse-leap","docker-test-tsan@python","docker-test-tsan@ubuntu1804","docker-test-tsan@ubuntu2004","docker-test-unit","docker-test-unit@alpine","docker-test-unit@centos8","docker-test-unit@debian-all-test-cross","docker-test-unit@debian-amd64","docker-test-unit@debian-arm64-cross","docker-test-unit@debian-armel-cross","docker-test-unit@debian-armhf-cross","docker-test-unit@debian-hexagon-cross","docker-test-unit@debian-mips-cross","docker-test-unit@debian-mips64el-cross","docker-test-unit@debian-mipsel-cross","docker-test-unit@debian-native","docker-test-unit@debian-ppc64el-cross","docker-test-unit@debian-riscv64-cross","docker-test-unit@debian-s390x-cross","docker-test-unit@fedora","docker-test-unit@fedora-i386-cross","docker-test-unit@fedora-win32-cross","docker-test-unit@fedora-win64-cross","docker-test-unit@opensuse-leap","docker-test-unit@python","docker-test-unit@ubuntu1804","docker-test-unit@ubuntu2004","gtags","help","lcitool","lcitool-help","lcitool-refresh","msi","recurse-all","recurse-clean","vm-build-all","vm-clean-all","vm-help","vm-test"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}} \ No newline at end of file
+{"buildTargets":["/home/xcd/qemu_uintr/qemu/docker-src.2022-05-03-01.28.55.2238","FORCE","Makefile","TAGS","all","check-help","clean","config-host.mak","configure","cscope","ctags","dist","distclean","docker","docker-all-tests","docker-clean","docker-exec-copy-test","docker-help","docker-image","docker-image-alpine","docker-image-debian-all-test-cross","docker-image-debian-alpha-cross","docker-image-debian-amd64","docker-image-debian-armel-cross","docker-image-debian-armhf-cross","docker-image-debian-hexagon-cross","docker-image-debian-hppa-cross","docker-image-debian-m68k-cross","docker-image-debian-microblaze-cross","docker-image-debian-mips-cross","docker-image-debian-mips64-cross","docker-image-debian-mips64el-cross","docker-image-debian-mipsel-cross","docker-image-debian-native","docker-image-debian-nios2-cross","docker-image-debian-powerpc-test-cross","docker-image-debian-ppc64el-cross","docker-image-debian-riscv64-test-cross","docker-image-debian-sh4-cross","docker-image-debian-sparc64-cross","docker-image-debian-tricore-cross","docker-image-debian10","docker-image-debian11","docker-qemu-src","docker-run","docker-test","docker-test-block","docker-test-block@alpine","docker-test-block@centos8","docker-test-block@debian-all-test-cross","docker-test-block@debian-amd64","docker-test-block@debian-arm64-cross","docker-test-block@debian-armel-cross","docker-test-block@debian-armhf-cross","docker-test-block@debian-hexagon-cross","docker-test-block@debian-mips-cross","docker-test-block@debian-mips64el-cross","docker-test-block@debian-mipsel-cross","docker-test-block@debian-native","docker-test-block@debian-ppc64el-cross","docker-test-block@debian-riscv64-cross","docker-test-block@debian-s390x-cross","docker-test-block@fedora","docker-test-block@fedora-i386-cross","docker-test-block@fedora-win32-cross","docker-test-block@fedora-win64-cross","docker-test-block@opensuse-leap","docker-test-block@python","docker-test-block@ubuntu1804","docker-test-block@ubuntu2004","docker-test-build","docker-test-build@alpine","docker-test-build@centos8","docker-test-build@debian-all-test-cross","docker-test-build@debian-amd64","docker-test-build@debian-arm64-cross","docker-test-build@debian-armel-cross","docker-test-build@debian-armhf-cross","docker-test-build@debian-hexagon-cross","docker-test-build@debian-mips-cross","docker-test-build@debian-mips64el-cross","docker-test-build@debian-mipsel-cross","docker-test-build@debian-native","docker-test-build@debian-ppc64el-cross","docker-test-build@debian-riscv64-cross","docker-test-build@debian-s390x-cross","docker-test-build@fedora","docker-test-build@fedora-i386-cross","docker-test-build@fedora-win32-cross","docker-test-build@fedora-win64-cross","docker-test-build@opensuse-leap","docker-test-build@python","docker-test-build@ubuntu1804","docker-test-build@ubuntu2004","docker-test-clang","docker-test-clang@alpine","docker-test-clang@centos8","docker-test-clang@debian-all-test-cross","docker-test-clang@debian-amd64","docker-test-clang@debian-arm64-cross","docker-test-clang@debian-armel-cross","docker-test-clang@debian-armhf-cross","docker-test-clang@debian-hexagon-cross","docker-test-clang@debian-mips-cross","docker-test-clang@debian-mips64el-cross","docker-test-clang@debian-mipsel-cross","docker-test-clang@debian-native","docker-test-clang@debian-ppc64el-cross","docker-test-clang@debian-riscv64-cross","docker-test-clang@debian-s390x-cross","docker-test-clang@fedora","docker-test-clang@fedora-i386-cross","docker-test-clang@fedora-win32-cross","docker-test-clang@fedora-win64-cross","docker-test-clang@opensuse-leap","docker-test-clang@python","docker-test-clang@ubuntu1804","docker-test-clang@ubuntu2004","docker-test-debug","docker-test-debug@alpine","docker-test-debug@centos8","docker-test-debug@debian-all-test-cross","docker-test-debug@debian-amd64","docker-test-debug@debian-arm64-cross","docker-test-debug@debian-armel-cross","docker-test-debug@debian-armhf-cross","docker-test-debug@debian-hexagon-cross","docker-test-debug@debian-mips-cross","docker-test-debug@debian-mips64el-cross","docker-test-debug@debian-mipsel-cross","docker-test-debug@debian-native","docker-test-debug@debian-ppc64el-cross","docker-test-debug@debian-riscv64-cross","docker-test-debug@debian-s390x-cross","docker-test-debug@fedora","docker-test-debug@fedora-i386-cross","docker-test-debug@fedora-win32-cross","docker-test-debug@fedora-win64-cross","docker-test-debug@opensuse-leap","docker-test-debug@python","docker-test-debug@ubuntu1804","docker-test-debug@ubuntu2004","docker-test-full","docker-test-full@alpine","docker-test-full@centos8","docker-test-full@debian-all-test-cross","docker-test-full@debian-amd64","docker-test-full@debian-arm64-cross","docker-test-full@debian-armel-cross","docker-test-full@debian-armhf-cross","docker-test-full@debian-hexagon-cross","docker-test-full@debian-mips-cross","docker-test-full@debian-mips64el-cross","docker-test-full@debian-mipsel-cross","docker-test-full@debian-native","docker-test-full@debian-ppc64el-cross","docker-test-full@debian-riscv64-cross","docker-test-full@debian-s390x-cross","docker-test-full@fedora","docker-test-full@fedora-i386-cross","docker-test-full@fedora-win32-cross","docker-test-full@fedora-win64-cross","docker-test-full@opensuse-leap","docker-test-full@python","docker-test-full@ubuntu1804","docker-test-full@ubuntu2004","docker-test-mingw","docker-test-mingw@alpine","docker-test-mingw@centos8","docker-test-mingw@debian-all-test-cross","docker-test-mingw@debian-amd64","docker-test-mingw@debian-arm64-cross","docker-test-mingw@debian-armel-cross","docker-test-mingw@debian-armhf-cross","docker-test-mingw@debian-hexagon-cross","docker-test-mingw@debian-mips-cross","docker-test-mingw@debian-mips64el-cross","docker-test-mingw@debian-mipsel-cross","docker-test-mingw@debian-native","docker-test-mingw@debian-ppc64el-cross","docker-test-mingw@debian-riscv64-cross","docker-test-mingw@debian-s390x-cross","docker-test-mingw@fedora","docker-test-mingw@fedora-i386-cross","docker-test-mingw@fedora-win32-cross","docker-test-mingw@fedora-win64-cross","docker-test-mingw@opensuse-leap","docker-test-mingw@python","docker-test-mingw@ubuntu1804","docker-test-mingw@ubuntu2004","docker-test-misc","docker-test-misc@alpine","docker-test-misc@centos8","docker-test-misc@debian-all-test-cross","docker-test-misc@debian-amd64","docker-test-misc@debian-arm64-cross","docker-test-misc@debian-armel-cross","docker-test-misc@debian-armhf-cross","docker-test-misc@debian-hexagon-cross","docker-test-misc@debian-mips-cross","docker-test-misc@debian-mips64el-cross","docker-test-misc@debian-mipsel-cross","docker-test-misc@debian-native","docker-test-misc@debian-ppc64el-cross","docker-test-misc@debian-riscv64-cross","docker-test-misc@debian-s390x-cross","docker-test-misc@fedora","docker-test-misc@fedora-i386-cross","docker-test-misc@fedora-win32-cross","docker-test-misc@fedora-win64-cross","docker-test-misc@opensuse-leap","docker-test-misc@python","docker-test-misc@ubuntu1804","docker-test-misc@ubuntu2004","docker-test-quick","docker-test-quick@alpine","docker-test-quick@centos8","docker-test-quick@debian-all-test-cross","docker-test-quick@debian-amd64","docker-test-quick@debian-arm64-cross","docker-test-quick@debian-armel-cross","docker-test-quick@debian-armhf-cross","docker-test-quick@debian-hexagon-cross","docker-test-quick@debian-mips-cross","docker-test-quick@debian-mips64el-cross","docker-test-quick@debian-mipsel-cross","docker-test-quick@debian-native","docker-test-quick@debian-ppc64el-cross","docker-test-quick@debian-riscv64-cross","docker-test-quick@debian-s390x-cross","docker-test-quick@fedora","docker-test-quick@fedora-i386-cross","docker-test-quick@fedora-win32-cross","docker-test-quick@fedora-win64-cross","docker-test-quick@opensuse-leap","docker-test-quick@python","docker-test-quick@ubuntu1804","docker-test-quick@ubuntu2004","docker-test-static","docker-test-static@alpine","docker-test-static@centos8","docker-test-static@debian-all-test-cross","docker-test-static@debian-amd64","docker-test-static@debian-arm64-cross","docker-test-static@debian-armel-cross","docker-test-static@debian-armhf-cross","docker-test-static@debian-hexagon-cross","docker-test-static@debian-mips-cross","docker-test-static@debian-mips64el-cross","docker-test-static@debian-mipsel-cross","docker-test-static@debian-native","docker-test-static@debian-ppc64el-cross","docker-test-static@debian-riscv64-cross","docker-test-static@debian-s390x-cross","docker-test-static@fedora","docker-test-static@fedora-i386-cross","docker-test-static@fedora-win32-cross","docker-test-static@fedora-win64-cross","docker-test-static@opensuse-leap","docker-test-static@python","docker-test-static@ubuntu1804","docker-test-static@ubuntu2004","docker-test-tcg","docker-test-tcg@alpine","docker-test-tcg@centos8","docker-test-tcg@debian-all-test-cross","docker-test-tcg@debian-amd64","docker-test-tcg@debian-arm64-cross","docker-test-tcg@debian-armel-cross","docker-test-tcg@debian-armhf-cross","docker-test-tcg@debian-hexagon-cross","docker-test-tcg@debian-mips-cross","docker-test-tcg@debian-mips64el-cross","docker-test-tcg@debian-mipsel-cross","docker-test-tcg@debian-native","docker-test-tcg@debian-ppc64el-cross","docker-test-tcg@debian-riscv64-cross","docker-test-tcg@debian-s390x-cross","docker-test-tcg@fedora","docker-test-tcg@fedora-i386-cross","docker-test-tcg@fedora-win32-cross","docker-test-tcg@fedora-win64-cross","docker-test-tcg@opensuse-leap","docker-test-tcg@python","docker-test-tcg@ubuntu1804","docker-test-tcg@ubuntu2004","docker-test-tsan","docker-test-tsan@alpine","docker-test-tsan@centos8","docker-test-tsan@debian-all-test-cross","docker-test-tsan@debian-amd64","docker-test-tsan@debian-arm64-cross","docker-test-tsan@debian-armel-cross","docker-test-tsan@debian-armhf-cross","docker-test-tsan@debian-hexagon-cross","docker-test-tsan@debian-mips-cross","docker-test-tsan@debian-mips64el-cross","docker-test-tsan@debian-mipsel-cross","docker-test-tsan@debian-native","docker-test-tsan@debian-ppc64el-cross","docker-test-tsan@debian-riscv64-cross","docker-test-tsan@debian-s390x-cross","docker-test-tsan@fedora","docker-test-tsan@fedora-i386-cross","docker-test-tsan@fedora-win32-cross","docker-test-tsan@fedora-win64-cross","docker-test-tsan@opensuse-leap","docker-test-tsan@python","docker-test-tsan@ubuntu1804","docker-test-tsan@ubuntu2004","docker-test-unit","docker-test-unit@alpine","docker-test-unit@centos8","docker-test-unit@debian-all-test-cross","docker-test-unit@debian-amd64","docker-test-unit@debian-arm64-cross","docker-test-unit@debian-armel-cross","docker-test-unit@debian-armhf-cross","docker-test-unit@debian-hexagon-cross","docker-test-unit@debian-mips-cross","docker-test-unit@debian-mips64el-cross","docker-test-unit@debian-mipsel-cross","docker-test-unit@debian-native","docker-test-unit@debian-ppc64el-cross","docker-test-unit@debian-riscv64-cross","docker-test-unit@debian-s390x-cross","docker-test-unit@fedora","docker-test-unit@fedora-i386-cross","docker-test-unit@fedora-win32-cross","docker-test-unit@fedora-win64-cross","docker-test-unit@opensuse-leap","docker-test-unit@python","docker-test-unit@ubuntu1804","docker-test-unit@ubuntu2004","gtags","help","lcitool","lcitool-help","lcitool-refresh","msi","recurse-all","recurse-clean","vm-build-all","vm-clean-all","vm-help","vm-test"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}} \ No newline at end of file
diff --git a/.vscode/dryrun.log b/.vscode/dryrun.log
index 5b8dc5fd9a..0d4572f90b 100644
--- a/.vscode/dryrun.log
+++ b/.vscode/dryrun.log
@@ -1,5 +1,6 @@
make --dry-run --always-make --keep-going --print-directory
make: Entering directory '/home/xcd/qemu_uintr/qemu'
+
make: Nothing to be done for 'all'.
make: Leaving directory '/home/xcd/qemu_uintr/qemu'
diff --git a/.vscode/targets.log b/.vscode/targets.log
index 275072a876..c4b5be7afb 100644
--- a/.vscode/targets.log
+++ b/.vscode/targets.log
@@ -1,19 +1,29 @@
make all --print-data-base --no-builtin-variables --no-builtin-rules --question
# GNU Make 4.2.1
+
# Built for x86_64-pc-linux-gnu
+
# Copyright (C) 1988-2016 Free Software Foundation, Inc.
+
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
+
# This is free software: you are free to change and redistribute it.
+
# There is NO WARRANTY, to the extent permitted by law.
+
-# Make data base, printed on Mon May 2 13:12:42 2022
+# Make data base, printed on Tue May 3 01:28:55 2022
+
# Variables
+
+
# automatic
<D = $(patsubst %/,%,$(dir $<))
# automatic
+
?F = $(notdir $?)
# default
.SHELLFLAGS := -c
@@ -63,16 +73,19 @@ DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus
VERSION = $(shell cat $(SRC_PATH)/VERSION)
# environment
VSCODE_VERBOSE_LOGGING = true
+
# makefile (from 'tests/docker/Makefile.include', line 13)
+
TESTS = %
# makefile (from 'tests/docker/Makefile.include', line 7)
COMMA := ,
+
# environment
VSCODE_CWD = /home/xcd
# makefile (from 'tests/docker/Makefile.include', line 103)
USER_TCG_TARGETS = $(patsubst %-linux-user,qemu-%,$(filter %-linux-user,$(TARGET_DIRS)))
# environment
-SSH_CONNECTION = 183.172.196.135 51557 10.0.0.4 22
+SSH_CONNECTION = 183.172.199.208 65387 10.0.0.4 22
# environment
PATH = /home/xcd/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/bin/remote-cli:/home/xcd/miniconda3/bin:/home/xcd/miniconda3/condabin:/home/xcd/.cargo/bin:/home/xcd/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
# makefile (from 'Makefile', line 27)
@@ -94,7 +107,7 @@ CONDA_PREFIX = /home/xcd/miniconda3
# environment
VSCODE_LOG_STACK = false
# environment
-VSCODE_IPC_HOOK_CLI = /run/user/1000/vscode-ipc-c9a9a275-e1e7-495c-b602-2f8e1f9daec7.sock
+VSCODE_IPC_HOOK_CLI = /run/user/1000/vscode-ipc-c0447ad0-c39f-49e6-a946-246a596a6b6f.sock
# default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load
# environment
@@ -102,12 +115,13 @@ LS_COLORS =
# automatic
%F = $(notdir $%)
# makefile (from 'tests/docker/Makefile.include', line 40)
-CUR_TIME := 2022-05-02-13.12.42.189499
+CUR_TIME := 2022-05-03-01.28.55.2238
# environment
CONDA_EXE = /home/xcd/miniconda3/bin/conda
# environment
VSCODE_PIPE_LOGGING = true
# makefile (from 'tests/docker/Makefile.include', line 24)
+
DOCKER_TARGETS := docker-image-alpine docker-image-centos8 docker-image-debian-all-test-cross docker-image-debian-alpha-cross docker-image-debian-amd64 docker-image-debian-amd64-cross docker-image-debian-arm64-cross docker-image-debian-armel-cross docker-image-debian-armhf-cross docker-image-debian-hexagon-cross docker-image-debian-hppa-cross docker-image-debian-m68k-cross docker-image-debian-mips-cross docker-image-debian-mips64-cross docker-image-debian-mips64el-cross docker-image-debian-mipsel-cross docker-image-debian-native docker-image-debian-powerpc-test-cross docker-image-debian-ppc64el-cross docker-image-debian-riscv64-cross docker-image-debian-riscv64-test-cross docker-image-debian-s390x-cross docker-image-debian-sh4-cross docker-image-debian-sparc64-cross docker-image-debian-tricore-cross docker-image-debian-xtensa-cross docker-image-debian10 docker-image-debian11 docker-image-fedora docker-image-fedora-cris-cross docker-image-fedora-i386-cross docker-image-fedora-win32-cross docker-image-fedora-win64-cross docker-image-opensuse-leap docker-image-python docker-image-ubuntu1804 docker-image-ubuntu2004
# environment
PWD = /home/xcd/qemu_uintr/qemu
@@ -160,7 +174,8 @@ DOCKER_SUFFIX := .docker
# makefile (from 'Makefile', line 8)
BUILD_DIR = $(CURDIR)
# environment
-XDG_SESSION_ID = 24
+
+XDG_SESSION_ID = 4
# environment
USER = xcd
# makefile (from 'tests/docker/Makefile.include', line 22)
@@ -170,8 +185,8 @@ __IMAGES := alpine centos8 debian-all-test-cross debian-alpha-cross debian-amd64
# makefile (from 'Makefile', line 287)
DESTDIR :=
# environment
-
SAMPLE = /home/xcd/qemu_uintr/uintr-linux-kernel/tools/uintr/sample
+
# environment
LESS = -R
# automatic
@@ -188,6 +203,7 @@ LCITOOL_REFRESH = $(SRC_PATH)/tests/lcitool/refresh
OLDPWD = /home/xcd
# makefile (from 'tests/docker/Makefile.include', line 32)
__TESTS := test-full test-quick test-build test-debug test-unit test-tcg test-mingw test-clang test-block test-tsan test-static test-misc
+
# default
.VARIABLES :=
# automatic
@@ -197,7 +213,7 @@ MAKEFLAGS = pqrR
# environment
MFLAGS = -pqrR
# environment
-SSH_CLIENT = 183.172.196.135 51557 22
+SSH_CLIENT = 183.172.199.208 65387 22
# automatic
+D = $(patsubst %/,%,$(dir $+))
# makefile (from 'tests/docker/Makefile.include', line 36)
@@ -219,10 +235,9 @@ HOST_ARCH = $(if $(ARCH),$(ARCH),$(shell uname -m))
# makefile (from 'tests/docker/Makefile.include', line 201)
debian-toolchain = $(call debian-toolchain-run,$(patsubst docker-image-%,%,$1))
# makefile (from 'tests/docker/Makefile.include', line 41)
-DOCKER_SRC_COPY := /home/xcd/qemu_uintr/qemu/docker-src.2022-05-02-13.12.42.189499
+DOCKER_SRC_COPY := /home/xcd/qemu_uintr/qemu/docker-src.2022-05-03-01.28.55.2238
# makefile (from 'tests/docker/Makefile.include', line 23)
DOCKER_IMAGES := alpine centos8 debian-all-test-cross debian-alpha-cross debian-amd64 debian-amd64-cross debian-arm64-cross debian-armel-cross debian-armhf-cross debian-hexagon-cross debian-hppa-cross debian-m68k-cross debian-mips-cross debian-mips64-cross debian-mips64el-cross debian-mipsel-cross debian-native debian-powerpc-test-cross debian-ppc64el-cross debian-riscv64-cross debian-riscv64-test-cross debian-s390x-cross debian-sh4-cross debian-sparc64-cross debian-tricore-cross debian-xtensa-cross debian10 debian11 fedora fedora-cris-cross fedora-i386-cross fedora-win32-cross fedora-win64-cross opensuse-leap python ubuntu1804 ubuntu2004
-
# makefile (from 'tests/docker/Makefile.include', line 28)
DOCKER_DEFAULT_REGISTRY := registry.gitlab.com/qemu-project/qemu
# environment
@@ -262,7 +277,6 @@ LANG = C
# environment
VSCODE_EXTHOST_WILL_SEND_SOCKET = true
# makefile (from 'tests/docker/Makefile.include', line 26)
-
DOCKER_CCACHE_DIR := $$HOME/.cache/qemu-docker-ccache
# environment
MOTD_SHOWN = pam
@@ -301,7 +315,6 @@ qemu-%.tar.bz2:
$(SRC_PATH)/scripts/make-release "$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
docker-image-%: tests/docker/dockerfiles/%.docker
-
# recipe to execute (from 'tests/docker/Makefile.include', line 68):
$(call quiet-command,\
$(DOCKER_SCRIPT) build -t qemu/$* -f $< \
@@ -374,7 +387,6 @@ vm-build-%: /home/xcd/.cache/qemu-vm/images/%.img
--build-qemu $(SRC_PATH) -- \
$(if $(TARGET_LIST),--target-list=$(TARGET_LIST)) \
$(if $(EXTRA_CONFIGURE_OPTS),$(EXTRA_CONFIGURE_OPTS)), \
-
" VM-BUILD $*")
vm-boot-serial-%: /home/xcd/.cache/qemu-vm/images/%.img
@@ -404,7 +416,6 @@ print-%:
# recipe to execute (from 'Makefile', line 339):
@echo '$*=$($*)'
-
# 9 implicit rules, 0 (0.0%) terminal.
# Files
@@ -464,7 +475,6 @@ docker-test-block@debian-all-test-cross: docker-image-debian-all-test-cross dock
# File does not exist.
# File has not been updated.
-
# Not a target:
docker-run-test-block@debian-mips-cross:
# Implicit rule search has not been done.
@@ -543,6 +553,7 @@ docker-run-test-tsan@debian-native:
# File has not been updated.
docker-test-misc@ubuntu1804: docker-image-ubuntu1804 docker-run-test-misc@ubuntu1804
+
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
@@ -618,7 +629,6 @@ docker-run-test-clang@opensuse-leap:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
-
docker-test-tcg@debian-hexagon-cross: docker-image-debian-hexagon-cross docker-run-test-tcg@debian-hexagon-cross
# Phony target (prerequisite of .PHONY).
@@ -698,7 +708,6 @@ docker-image-fedora-cris-cross:
# Modification time never checked.
# File has not been updated.
-
# Not a target:
docker-run-test-debug@debian-native:
# Implicit rule search has not been done.
@@ -724,6 +733,7 @@ vm-help:
# recipe to execute (from 'tests/vm/Makefile.include', line 34):
@echo "vm-help: Test QEMU in preconfigured virtual machines"
@echo
+
@echo " vm-build-freebsd - Build QEMU in FreeBSD VM"
@echo " vm-build-netbsd - Build QEMU in NetBSD VM"
@echo " vm-build-openbsd - Build QEMU in OpenBSD VM"
@@ -748,7 +758,6 @@ vm-help:
@echo " QEMU=/path/to/qemu - Change path to QEMU binary"
@echo " (install python3-yaml to enable support for yaml file to configure a VM.)"
@echo " See conf_example_*.yml for file format details."
-
@echo " QEMU_IMG=/path/to/qemu-img - Change path to qemu-img tool"
@echo " QEMU_LOCAL=1 - Use QEMU binary local to this build."
@echo " TARGET_LIST=a,b,c - Override target list in builds"
@@ -792,7 +801,6 @@ docker-test-unit@debian-hexagon-cross: docker-image-debian-hexagon-cross docker-
# Not a target:
docker-image-fedora-i386-cross:
-
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
@@ -827,7 +835,6 @@ lcitool:
# File has not been updated.
# recipe to execute (from 'tests/lcitool/Makefile.include', line 5):
@echo 'Manage build environment manifests'
-
@echo
@echo 'Available targets:'
@echo
@@ -851,6 +858,7 @@ docker-test-static@alpine: docker-image-alpine docker-run-test-static@alpine
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
+
# File has not been updated.
# Not a target:
@@ -861,7 +869,6 @@ docker-run-test-mingw@ubuntu1804:
docker-test-block@fedora-win64-cross: docker-image-fedora-win64-cross docker-run-test-block@fedora-win64-cross
# Phony target (prerequisite of .PHONY).
-
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
@@ -890,7 +897,6 @@ docker-test-mingw@debian-all-test-cross: docker-image-debian-all-test-cross dock
all: recurse-all
# Phony target (prerequisite of .PHONY).
-
# Command line target.
# Implicit rule search has not been done.
# File does not exist.
@@ -920,7 +926,6 @@ FORCE:
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
-
# Not a target:
docker-run-test-full@debian-armhf-cross:
@@ -954,16 +959,14 @@ docker-run-test-build@debian-all-test-cross:
# Not a target:
-
docker-run-test-clang@debian-mips64el-cross:
-
# Implicit rule search has not been done.
-
# Modification time never checked.
# File has not been updated.
# Not a target:
docker-run-test-static@python:
+
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
@@ -1035,13 +1038,13 @@ docker-run-test-misc@debian-armhf-cross:
# Not a target:
docker-run-test-mingw@debian-riscv64-cross:
+
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
docker-test-block@debian-mips64el-cross: docker-image-debian-mips64el-cross docker-run-test-block@debian-mips64el-cross
# Phony target (prerequisite of .PHONY).
-
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
@@ -1052,7 +1055,7 @@ docker-test-unit@debian-arm64-cross: docker-image-debian-arm64-cross docker-run-
# File does not exist.
# File has not been updated.
-docker-test-full@debian-all-test-cross: docker-image-debian-all-test-cross docker-run-test-full@debian-all-test-cross
+docker-test-static@debian-mips-cross: docker-image-debian-mips-cross docker-run-test-static@debian-mips-cross
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
@@ -1138,7 +1141,6 @@ docker-image-debian-native:
docker-test-mingw@ubuntu1804: docker-image-ubuntu1804 docker-run-test-mingw@ubuntu1804
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
-
# File does not exist.
# File has not been updated.
@@ -1166,11 +1168,20 @@ docker-test-tcg@ubuntu1804: docker-image-ubuntu1804 docker-run-test-tcg@ubuntu18
# File does not exist.
# File has not been updated.
-# Not a target:
-docker-run-test-tsan@ubuntu1804:
+/home/xcd/qemu_uintr/qemu/docker-src.2022-05-03-01.28.55.2238:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
+# recipe to execute (from 'tests/docker/Makefile.include', line 45):
+ @mkdir $@
+ $(if $(SRC_ARCHIVE), \
+ $(call quiet-command, cp "$(SRC_ARCHIVE)" $@/qemu.tar, \
+ "CP", "$@/qemu.tar"), \
+ $(call quiet-command, cd $(SRC_PATH) && scripts/archive-source.sh $@/qemu.tar, \
+
+ "GEN", "$@/qemu.tar"))
+ $(call quiet-command, cp $(SRC_PATH)/tests/docker/run $@/run, \
+ "COPY","RUNNER")
docker-test-unit@debian-all-test-cross: docker-image-debian-all-test-cross docker-run-test-unit@debian-all-test-cross
# Phony target (prerequisite of .PHONY).
@@ -1216,7 +1227,6 @@ docker-run-test-unit@alpine:
# Not a target:
docker-run-test-clang@fedora:
# Implicit rule search has not been done.
-
# Modification time never checked.
# File has not been updated.
@@ -1282,7 +1292,6 @@ distclean: clean
rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols
rm -f *-config-target.h *-config-devices.mak *-config-devices.h
rm -rf meson-private meson-logs meson-info compile_commands.json
-
rm -f Makefile.ninja Makefile.mtest build.ninja.stamp meson.stamp
rm -f config.log
rm -f linux-headers/asm
@@ -1292,6 +1301,7 @@ docker-test-tcg@fedora: docker-image-fedora docker-run-test-tcg@fedora
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
+
# File has not been updated.
# Not a target:
@@ -1366,7 +1376,6 @@ docker-test-mingw@debian-arm64-cross: docker-image-debian-arm64-cross docker-run
# File has not been updated.
docker-test-tsan@alpine: docker-image-alpine docker-run-test-tsan@alpine
-
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
@@ -1414,6 +1423,7 @@ docker-test-mingw@debian-mips64el-cross: docker-image-debian-mips64el-cross dock
docker-run-test-unit@debian-mips-cross:
# Implicit rule search has not been done.
# Modification time never checked.
+
# File has not been updated.
docker-test-unit@debian-armhf-cross: docker-image-debian-armhf-cross docker-run-test-unit@debian-armhf-cross
@@ -1592,6 +1602,7 @@ docker-test-mingw@fedora: docker-image-fedora docker-run-test-mingw@fedora
docker-test-clang@opensuse-leap: docker-image-opensuse-leap docker-run-test-clang@opensuse-leap
# Phony target (prerequisite of .PHONY).
+
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
@@ -1660,7 +1671,6 @@ docker-run-test-block@fedora-win64-cross:
# Not a target:
docker-run-test-debug@debian-ppc64el-cross:
# Implicit rule search has not been done.
-
# Modification time never checked.
# File has not been updated.
@@ -1712,6 +1722,7 @@ docker-run-test-static@debian-hexagon-cross:
# Modification time never checked.
# File has not been updated.
+
docker-test-build@python: docker-image-python docker-run-test-build@python
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
@@ -1897,6 +1908,7 @@ docker-run-test-full@centos8:
docker-test-unit: docker-test-unit@alpine docker-test-unit@centos8 docker-test-unit@debian-all-test-cross docker-test-unit@debian-amd64 docker-test-unit@debian-arm64-cross docker-test-unit@debian-armel-cross docker-test-unit@debian-armhf-cross docker-test-unit@debian-hexagon-cross docker-test-unit@debian-mips-cross docker-test-unit@debian-mips64el-cross docker-test-unit@debian-mipsel-cross docker-test-unit@debian-native docker-test-unit@debian-ppc64el-cross docker-test-unit@debian-riscv64-cross docker-test-unit@debian-s390x-cross docker-test-unit@fedora docker-test-unit@fedora-i386-cross docker-test-unit@fedora-win32-cross docker-test-unit@fedora-win64-cross docker-test-unit@opensuse-leap docker-test-unit@python docker-test-unit@ubuntu1804 docker-test-unit@ubuntu2004
# Implicit rule search has not been done.
# Modification time never checked.
+
# File has not been updated.
# Not a target:
@@ -2010,6 +2022,7 @@ docker-test-quick@debian-mips-cross: docker-image-debian-mips-cross docker-run-t
docker-test-clang@debian-hexagon-cross: docker-image-debian-hexagon-cross docker-run-test-clang@debian-hexagon-cross
# Phony target (prerequisite of .PHONY).
+
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
@@ -2039,7 +2052,6 @@ docker-run-test-block@centos8:
docker-image-debian-ppc64el-cross: docker-image-debian10
# Implicit rule search has not been done.
-
# Modification time never checked.
# File has not been updated.
@@ -2133,6 +2145,7 @@ vm-build-freebsd:
docker-run-test-tsan@debian-mipsel-cross:
# Implicit rule search has not been done.
# Modification time never checked.
+
# File has not been updated.
# Not a target:
@@ -2171,7 +2184,7 @@ recurse-clean:
# File does not exist.
# File has not been updated.
-docker-qemu-src: /home/xcd/qemu_uintr/qemu/docker-src.2022-05-02-13.12.42.189499
+docker-qemu-src: /home/xcd/qemu_uintr/qemu/docker-src.2022-05-03-01.28.55.2238
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
@@ -2222,7 +2235,6 @@ docker-run-test-block@debian-ppc64el-cross:
docker-image-debian-sh4-cross: docker-image-debian10
# Implicit rule search has not been done.
# Modification time never checked.
-
# File has not been updated.
docker-test-block@alpine: docker-image-alpine docker-run-test-block@alpine
@@ -2259,6 +2271,7 @@ docker-test-tsan@centos8: docker-image-centos8 docker-run-test-tsan@centos8
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
+
# File has not been updated.
docker-test-unit@alpine: docker-image-alpine docker-run-test-unit@alpine
@@ -2387,7 +2400,6 @@ help:
@echo ''
@echo 'Documentation targets:'
$(call print-help,html man,Build documentation in specified format)
-
@echo ''
$(call print-help,$(MAKE) [targets],(quiet build, default))
$(call print-help,$(MAKE) V=1 [targets],(verbose build))
@@ -2395,6 +2407,7 @@ help:
# Not a target:
docker-run-test-block@python:
# Implicit rule search has not been done.
+
# Modification time never checked.
# File has not been updated.
@@ -2526,6 +2539,7 @@ docker-run-test-build@fedora-win64-cross:
# Not a target:
docker-image-centos8:
+
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
@@ -2535,7 +2549,6 @@ docker-run-test-quick@ubuntu1804:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
-
docker-test-full@ubuntu2004: docker-image-ubuntu2004 docker-run-test-full@ubuntu2004
# Phony target (prerequisite of .PHONY).
@@ -2655,9 +2668,9 @@ docker-test-tsan@python: docker-image-python docker-run-test-tsan@python
# File has not been updated.
# Not a target:
+
tests/vm/Makefile.include:
# Implicit rule search has been done.
-
# Last modified 2022-04-28 17:07:54.668634076
# File has been updated.
# Successfully updated.
@@ -2771,18 +2784,12 @@ docker-run-test-static@fedora-i386-cross:
# File has not been updated.
# Not a target:
+
docker-run-test-mingw@debian-mipsel-cross:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
-docker-test-tsan@debian-s390x-cross: docker-image-debian-s390x-cross docker-run-test-tsan@debian-s390x-cross
-# Phony target (prerequisite of .PHONY).
-# Implicit rule search has not been done.
-
-# File does not exist.
-# File has not been updated.
-
# Not a target:
docker-run-test-build@alpine:
# Implicit rule search has not been done.
@@ -2897,6 +2904,7 @@ tests/lcitool/Makefile.include:
# File has been updated.
# Successfully updated.
+
docker-test-clang@debian-riscv64-cross: docker-image-debian-riscv64-cross docker-run-test-clang@debian-riscv64-cross
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
@@ -2912,7 +2920,6 @@ tests/docker/dockerfiles/debian-microblaze-cross.d/build-toolchain.sh:
# Not a target:
docker-run-test-full@debian-armel-cross:
# Implicit rule search has not been done.
-
# Modification time never checked.
# File has not been updated.
@@ -3016,6 +3023,7 @@ docker-test-misc@alpine: docker-image-alpine docker-run-test-misc@alpine
# Not a target:
docker-run-test-block@ubuntu1804:
# Implicit rule search has not been done.
+
# Modification time never checked.
# File has not been updated.
@@ -3030,14 +3038,13 @@ docker-test-tcg@fedora-win32-cross: docker-image-fedora-win32-cross docker-run-t
# File does not exist.
# File has not been updated.
-docker-test-static@debian-mips-cross: docker-image-debian-mips-cross docker-run-test-static@debian-mips-cross
+docker-test-tsan@debian-s390x-cross: docker-image-debian-s390x-cross docker-run-test-tsan@debian-s390x-cross
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
docker-test-full@centos8: docker-image-centos8 docker-run-test-full@centos8
-
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
@@ -3102,6 +3109,7 @@ docker-test-full: docker-test-full@alpine docker-test-full@centos8 docker-test-f
# Modification time never checked.
# File has not been updated.
+
docker-all-tests: docker-test-full@alpine docker-test-quick@alpine docker-test-build@alpine docker-test-debug@alpine docker-test-unit@alpine docker-test-tcg@alpine docker-test-mingw@alpine docker-test-clang@alpine docker-test-block@alpine docker-test-tsan@alpine docker-test-static@alpine docker-test-misc@alpine docker-test-full@centos8 docker-test-quick@centos8 docker-test-build@centos8 docker-test-debug@centos8 docker-test-unit@centos8 docker-test-tcg@centos8 docker-test-mingw@centos8 docker-test-clang@centos8 docker-test-block@centos8 docker-test-tsan@centos8 docker-test-static@centos8 docker-test-misc@centos8 docker-test-full@debian-all-test-cross docker-test-quick@debian-all-test-cross docker-test-build@debian-all-test-cross docker-test-debug@debian-all-test-cross docker-test-unit@debian-all-test-cross docker-test-tcg@debian-all-test-cross docker-test-mingw@debian-all-test-cross docker-test-clang@debian-all-test-cross docker-test-block@debian-all-test-cross docker-test-tsan@debian-all-test-cross docker-test-static@debian-all-test-cross docker-test-misc@debian-all-test-cross docker-test-full@debian-amd64 docker-test-quick@debian-amd64 docker-test-build@debian-amd64 docker-test-debug@debian-amd64 docker-test-unit@debian-amd64 docker-test-tcg@debian-amd64 docker-test-mingw@debian-amd64 docker-test-clang@debian-amd64 docker-test-block@debian-amd64 docker-test-tsan@debian-amd64 docker-test-static@debian-amd64 docker-test-misc@debian-amd64 docker-test-full@debian-arm64-cross docker-test-quick@debian-arm64-cross docker-test-build@debian-arm64-cross docker-test-debug@debian-arm64-cross docker-test-unit@debian-arm64-cross docker-test-tcg@debian-arm64-cross docker-test-mingw@debian-arm64-cross docker-test-clang@debian-arm64-cross docker-test-block@debian-arm64-cross docker-test-tsan@debian-arm64-cross docker-test-static@debian-arm64-cross docker-test-misc@debian-arm64-cross docker-test-full@debian-armel-cross docker-test-quick@debian-armel-cross docker-test-build@debian-armel-cross docker-test-debug@debian-armel-cross docker-test-unit@debian-armel-cross docker-test-tcg@debian-armel-cross docker-test-mingw@debian-armel-cross docker-test-clang@debian-armel-cross docker-test-block@debian-armel-cross docker-test-tsan@debian-armel-cross docker-test-static@debian-armel-cross docker-test-misc@debian-armel-cross docker-test-full@debian-armhf-cross docker-test-quick@debian-armhf-cross docker-test-build@debian-armhf-cross docker-test-debug@debian-armhf-cross docker-test-unit@debian-armhf-cross docker-test-tcg@debian-armhf-cross docker-test-mingw@debian-armhf-cross docker-test-clang@debian-armhf-cross docker-test-block@debian-armhf-cross docker-test-tsan@debian-armhf-cross docker-test-static@debian-armhf-cross docker-test-misc@debian-armhf-cross docker-test-full@debian-hexagon-cross docker-test-quick@debian-hexagon-cross docker-test-build@debian-hexagon-cross docker-test-debug@debian-hexagon-cross docker-test-unit@debian-hexagon-cross docker-test-tcg@debian-hexagon-cross docker-test-mingw@debian-hexagon-cross docker-test-clang@debian-hexagon-cross docker-test-block@debian-hexagon-cross docker-test-tsan@debian-hexagon-cross docker-test-static@debian-hexagon-cross docker-test-misc@debian-hexagon-cross docker-test-full@debian-mips-cross docker-test-quick@debian-mips-cross docker-test-build@debian-mips-cross docker-test-debug@debian-mips-cross docker-test-unit@debian-mips-cross docker-test-tcg@debian-mips-cross docker-test-mingw@debian-mips-cross docker-test-clang@debian-mips-cross docker-test-block@debian-mips-cross docker-test-tsan@debian-mips-cross docker-test-static@debian-mips-cross docker-test-misc@debian-mips-cross docker-test-full@debian-mips64el-cross docker-test-quick@debian-mips64el-cross docker-test-build@debian-mips64el-cross docker-test-debug@debian-mips64el-cross docker-test-unit@debian-mips64el-cross docker-test-tcg@debian-mips64el-cross docker-test-mingw@debian-mips64el-cross docker-test-clang@debian-mips64el-cross docker-test-block@debian-mips64el-cross docker-test-tsan@debian-mips64el-cross docker-test-static@debian-mips64el-cross docker-test-misc@debian-mips64el-cross docker-test-full@debian-mipsel-cross docker-test-quick@debian-mipsel-cross docker-test-build@debian-mipsel-cross docker-test-debug@debian-mipsel-cross docker-test-unit@debian-mipsel-cross docker-test-tcg@debian-mipsel-cross docker-test-mingw@debian-mipsel-cross docker-test-clang@debian-mipsel-cross docker-test-block@debian-mipsel-cross docker-test-tsan@debian-mipsel-cross docker-test-static@debian-mipsel-cross docker-test-misc@debian-mipsel-cross docker-test-full@debian-native docker-test-quick@debian-native docker-test-build@debian-native docker-test-debug@debian-native docker-test-unit@debian-native docker-test-tcg@debian-native docker-test-mingw@debian-native docker-test-clang@debian-native docker-test-block@debian-native docker-test-tsan@debian-native docker-test-static@debian-native docker-test-misc@debian-native docker-test-full@debian-ppc64el-cross docker-test-quick@debian-ppc64el-cross docker-test-build@debian-ppc64el-cross docker-test-debug@debian-ppc64el-cross docker-test-unit@debian-ppc64el-cross docker-test-tcg@debian-ppc64el-cross docker-test-mingw@debian-ppc64el-cross docker-test-clang@debian-ppc64el-cross docker-test-block@debian-ppc64el-cross docker-test-tsan@debian-ppc64el-cross docker-test-static@debian-ppc64el-cross docker-test-misc@debian-ppc64el-cross docker-test-full@debian-riscv64-cross docker-test-quick@debian-riscv64-cross docker-test-build@debian-riscv64-cross docker-test-debug@debian-riscv64-cross docker-test-unit@debian-riscv64-cross docker-test-tcg@debian-riscv64-cross docker-test-mingw@debian-riscv64-cross docker-test-clang@debian-riscv64-cross docker-test-block@debian-riscv64-cross docker-test-tsan@debian-riscv64-cross docker-test-static@debian-riscv64-cross docker-test-misc@debian-riscv64-cross docker-test-full@debian-s390x-cross docker-test-quick@debian-s390x-cross docker-test-build@debian-s390x-cross docker-test-debug@debian-s390x-cross docker-test-unit@debian-s390x-cross docker-test-tcg@debian-s390x-cross docker-test-mingw@debian-s390x-cross docker-test-clang@debian-s390x-cross docker-test-block@debian-s390x-cross docker-test-tsan@debian-s390x-cross docker-test-static@debian-s390x-cross docker-test-misc@debian-s390x-cross docker-test-full@fedora docker-test-quick@fedora docker-test-build@fedora docker-test-debug@fedora docker-test-unit@fedora docker-test-tcg@fedora docker-test-mingw@fedora docker-test-clang@fedora docker-test-block@fedora docker-test-tsan@fedora docker-test-static@fedora docker-test-misc@fedora docker-test-full@fedora-i386-cross docker-test-quick@fedora-i386-cross docker-test-build@fedora-i386-cross docker-test-debug@fedora-i386-cross docker-test-unit@fedora-i386-cross docker-test-tcg@fedora-i386-cross docker-test-mingw@fedora-i386-cross docker-test-clang@fedora-i386-cross docker-test-block@fedora-i386-cross docker-test-tsan@fedora-i386-cross docker-test-static@fedora-i386-cross docker-test-misc@fedora-i386-cross docker-test-full@fedora-win32-cross docker-test-quick@fedora-win32-cross docker-test-build@fedora-win32-cross docker-test-debug@fedora-win32-cross docker-test-unit@fedora-win32-cross docker-test-tcg@fedora-win32-cross docker-test-mingw@fedora-win32-cross docker-test-clang@fedora-win32-cross docker-test-block@fedora-win32-cross docker-test-tsan@fedora-win32-cross docker-test-static@fedora-win32-cross docker-test-misc@fedora-win32-cross docker-test-full@fedora-win64-cross docker-test-quick@fedora-win64-cross docker-test-build@fedora-win64-cross docker-test-debug@fedora-win64-cross docker-test-unit@fedora-win64-cross docker-test-tcg@fedora-win64-cross docker-test-mingw@fedora-win64-cross docker-test-clang@fedora-win64-cross docker-test-block@fedora-win64-cross docker-test-tsan@fedora-win64-cross docker-test-static@fedora-win64-cross docker-test-misc@fedora-win64-cross docker-test-full@opensuse-leap docker-test-quick@opensuse-leap docker-test-build@opensuse-leap docker-test-debug@opensuse-leap docker-test-unit@opensuse-leap docker-test-tcg@opensuse-leap docker-test-mingw@opensuse-leap docker-test-clang@opensuse-leap docker-test-block@opensuse-leap docker-test-tsan@opensuse-leap docker-test-static@opensuse-leap docker-test-misc@opensuse-leap docker-test-full@python docker-test-quick@python docker-test-build@python docker-test-debug@python docker-test-unit@python docker-test-tcg@python docker-test-mingw@python docker-test-clang@python docker-test-block@python docker-test-tsan@python docker-test-static@python docker-test-misc@python docker-test-full@ubuntu1804 docker-test-quick@ubuntu1804 docker-test-build@ubuntu1804 docker-test-debug@ubuntu1804 docker-test-unit@ubuntu1804 docker-test-tcg@ubuntu1804 docker-test-mingw@ubuntu1804 docker-test-clang@ubuntu1804 docker-test-block@ubuntu1804 docker-test-tsan@ubuntu1804 docker-test-static@ubuntu1804 docker-test-misc@ubuntu1804 docker-test-full@ubuntu2004 docker-test-quick@ubuntu2004 docker-test-build@ubuntu2004 docker-test-debug@ubuntu2004 docker-test-unit@ubuntu2004 docker-test-tcg@ubuntu2004 docker-test-mingw@ubuntu2004 docker-test-clang@ubuntu2004 docker-test-block@ubuntu2004 docker-test-tsan@ubuntu2004 docker-test-static@ubuntu2004 docker-test-misc@ubuntu2004
# Implicit rule search has not been done.
# Modification time never checked.
@@ -3127,7 +3135,6 @@ docker-test-tcg@debian-ppc64el-cross: docker-image-debian-ppc64el-cross docker-r
# Not a target:
docker-run-test-unit@debian-armel-cross:
-
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
@@ -3247,6 +3254,7 @@ docker-test-mingw: docker-test-mingw@alpine docker-test-mingw@centos8 docker-tes
# File has not been updated.
docker-test-tcg@python: docker-image-python docker-run-test-tcg@python
+
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
@@ -3274,7 +3282,6 @@ docker-test-static@debian-all-test-cross: docker-image-debian-all-test-cross doc
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
-
docker-test-static@opensuse-leap: docker-image-opensuse-leap docker-run-test-static@opensuse-leap
# Phony target (prerequisite of .PHONY).
@@ -3416,7 +3423,6 @@ docker-run-test-full@debian-all-test-cross:
# File has not been updated.
# Not a target:
-
docker-run-test-static@debian-riscv64-cross:
# Implicit rule search has not been done.
# Modification time never checked.
@@ -3477,6 +3483,7 @@ docker:
@echo ' docker-all-tests: Run all image/test combinations.'
@echo ' docker-TEST: Run "TEST" on all image combinations.'
@echo ' docker-clean: Kill and remove residual docker testing containers.'
+
@echo ' docker-TEST@IMAGE: Run "TEST" in container "IMAGE".'
@echo ' Note: "TEST" is one of the listed test name,'
@echo ' or a script name under $$QEMU_SRC/tests/docker/;'
@@ -3545,7 +3552,6 @@ docker-run-test-static@debian-amd64:
# File has not been updated.
docker-test-tcg@debian-arm64-cross: docker-image-debian-arm64-cross docker-run-test-tcg@debian-arm64-cross
-
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
@@ -3690,7 +3696,6 @@ docker-run-test-tsan@debian-armhf-cross:
# File has not been updated.
docker-test-full@fedora: docker-image-fedora docker-run-test-full@fedora
-
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
@@ -3765,6 +3770,7 @@ docker-run-test-build@debian-s390x-cross:
# Not a target:
docker-run-test-full@debian-mipsel-cross:
# Implicit rule search has not been done.
+
# Modification time never checked.
# File has not been updated.
@@ -3823,7 +3829,6 @@ docker-run-test-misc@debian-armel-cross:
# Not a target:
docker-run-test-misc@ubuntu2004:
-
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
@@ -3972,7 +3977,6 @@ docker-test-full@ubuntu1804: docker-image-ubuntu1804 docker-run-test-full@ubuntu
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
-
# File has not been updated.
docker-test-unit@fedora-i386-cross: docker-image-fedora-i386-cross docker-run-test-unit@fedora-i386-cross
@@ -3994,6 +3998,7 @@ docker-run-test-debug@debian-armhf-cross:
# File has not been updated.
# Not a target:
+
docker-run-test-full@debian-arm64-cross:
# Implicit rule search has not been done.
# Modification time never checked.
@@ -4134,7 +4139,6 @@ docker-test-unit@ubuntu1804: docker-image-ubuntu1804 docker-run-test-unit@ubuntu
# Not a target:
docker-run-test-block@debian-hexagon-cross:
-
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
@@ -4175,7 +4179,7 @@ docker-run-test-unit@debian-hexagon-cross:
# Modification time never checked.
# File has not been updated.
-.DELETE_ON_ERROR: /home/xcd/qemu_uintr/qemu/docker-src.2022-05-02-13.12.42.189499
+.DELETE_ON_ERROR: /home/xcd/qemu_uintr/qemu/docker-src.2022-05-03-01.28.55.2238
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
@@ -4223,6 +4227,7 @@ gtags:
# Not a target:
docker-run-test-block@debian-mips64el-cross:
# Implicit rule search has not been done.
+
# Modification time never checked.
# File has not been updated.
@@ -4288,7 +4293,6 @@ docker-test-unit@debian-armel-cross: docker-image-debian-armel-cross docker-run-
docker-test-misc@python: docker-image-python docker-run-test-misc@python
# Phony target (prerequisite of .PHONY).
-
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
@@ -4425,13 +4429,13 @@ docker-test-debug@ubuntu1804: docker-image-ubuntu1804 docker-run-test-debug@ubun
# File does not exist.
# File has not been updated.
+
docker-test-quick@debian-mipsel-cross: docker-image-debian-mipsel-cross docker-run-test-quick@debian-mipsel-cross
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
-
# Not a target:
docker-run-test-debug@debian-amd64:
# Implicit rule search has not been done.
@@ -4515,6 +4519,12 @@ docker-test-mingw@debian-mips-cross: docker-image-debian-mips-cross docker-run-t
# File does not exist.
# File has not been updated.
+# Not a target:
+docker-run-test-tsan@ubuntu1804:
+# Implicit rule search has not been done.
+# Modification time never checked.
+# File has not been updated.
+
docker-test-clang@debian-ppc64el-cross: docker-image-debian-ppc64el-cross docker-run-test-clang@debian-ppc64el-cross
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
@@ -4539,19 +4549,11 @@ docker-run-test-tsan@alpine:
# Modification time never checked.
# File has not been updated.
-/home/xcd/qemu_uintr/qemu/docker-src.2022-05-02-13.12.42.189499:
+docker-test-full@debian-all-test-cross: docker-image-debian-all-test-cross docker-run-test-full@debian-all-test-cross
+# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
-# Modification time never checked.
+# File does not exist.
# File has not been updated.
-# recipe to execute (from 'tests/docker/Makefile.include', line 45):
- @mkdir $@
- $(if $(SRC_ARCHIVE), \
- $(call quiet-command, cp "$(SRC_ARCHIVE)" $@/qemu.tar, \
- "CP", "$@/qemu.tar"), \
- $(call quiet-command, cd $(SRC_PATH) && scripts/archive-source.sh $@/qemu.tar, \
- "GEN", "$@/qemu.tar"))
- $(call quiet-command, cp $(SRC_PATH)/tests/docker/run $@/run, \
- "COPY","RUNNER")
docker-test-static@debian-riscv64-cross: docker-image-debian-riscv64-cross docker-run-test-static@debian-riscv64-cross
# Phony target (prerequisite of .PHONY).
@@ -4568,7 +4570,6 @@ docker-test-full@opensuse-leap: docker-image-opensuse-leap docker-run-test-full@
# Not a target:
docker-run-test-full@fedora-i386-cross:
# Implicit rule search has not been done.
-
# Modification time never checked.
# File has not been updated.
@@ -4615,6 +4616,7 @@ tests/docker/dockerfiles/debian-toolchain.docker:
# Modification time never checked.
# File has not been updated.
+
docker-test-misc@debian-s390x-cross: docker-image-debian-s390x-cross docker-run-test-misc@debian-s390x-cross
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
@@ -4700,22 +4702,21 @@ docker-test-build@fedora-win32-cross: docker-image-fedora-win32-cross docker-run
# File has not been updated.
# files hash-table stats:
-
-# Load=663/1024=65%, Rehash=0, Collisions=1350/3310=41%
+# Load=663/1024=65%, Rehash=0, Collisions=1317/3310=40%
# VPATH Search Paths
# No 'vpath' search paths.
# No general ('VPATH' variable) search path.
-# strcache buffers: 4 (2) / strings = 852 / storage = 24904 B / avg = 29 B
+# strcache buffers: 4 (2) / strings = 852 / storage = 24902 B / avg = 29 B
# current buf: size = 8162 B / used = 488 B / count = 23 / avg = 21 B
-# other used: total = 24416 B / count = 829 / avg = 29 B
-# other free: total = 70 B / max = 33 B / min = 8 B / avg = 23 B
+# other used: total = 24414 B / count = 829 / avg = 29 B
+# other free: total = 72 B / max = 33 B / min = 10 B / avg = 24 B
# strcache performance: lookups = 4045 / hit rate = 78%
# hash-table stats:
# Load=852/8192=10%, Rehash=0, Collisions=131/4045=3%
-# Finished Make data base on Mon May 2 13:12:42 2022
+# Finished Make data base on Tue May 3 01:28:55 2022
diff --git a/target/i386/tcg/misc_helper.c b/target/i386/tcg/misc_helper.c
index 1674056d46..5af5e0add2 100644
--- a/target/i386/tcg/misc_helper.c
+++ b/target/i386/tcg/misc_helper.c
@@ -121,14 +121,7 @@ void helper_senduipi(CPUX86State *env ,int reg_index){ // 改
}
-void helper_rrnzero(CPUX86State *env){
- if(Debug)printf("rrnzero called\n");
- // PUSHQ(esp, env->segs[R_SS].selector);
- // PUSHQ(esp, env->regs[R_ESP]);
- // PUSHQ(esp, cpu_compute_eflags(env));
- // PUSHQ(esp, env->segs[R_CS].selector);
- // PUSHQ(esp, old_eip);
-}
+
void helper_rdtscp(CPUX86State *env)
{
diff --git a/target/i386/tcg/seg_helper.c b/target/i386/tcg/seg_helper.c
index 60540fb925..85f17801a0 100644
--- a/target/i386/tcg/seg_helper.c
+++ b/target/i386/tcg/seg_helper.c
@@ -859,8 +859,48 @@ static inline target_ulong get_rsp_from_tss(CPUX86State *env, int level)
return rsp;
}
+
+
+
+static bool Debug = true;
+void helper_rrnzero(CPUX86State *env){ // 改
+ if(Debug)printf("rrnzero called handler: 0x%lx\n", env->uintr_handler);
+ target_ulong temprsp = env->regs[R_ESP];
+ printf("qemu:origin exp 0x%lx eip 0x%lx\n",env->regs[R_ESP], env->eip);
+ // if(env->uintr_stackadjust &1){ // adjust[0] = 1
+ // env->regs[R_ESP] = env->uintr_stackadjust;
+ // printf("qemu:set statck 0x%lx\n",env->regs[R_ESP]);
+ // }else{
+ // env->regs[R_ESP] -= env->uintr_stackadjust;
+ // printf("qemu:move statck 0x%lx\n",env->regs[R_ESP]);
+ // }
+ // env->regs[R_ESP] &= ~0xfLL; /* align stack */
+ target_ulong esp = env->regs[R_ESP];
+ PUSHQ(esp, temprsp);
+ printf("qemu: pushed rsp\n");
+ PUSHQ(esp, env->eflags); // PUSHQ(esp, cpu_compute_eflags(env));
+ printf("qemu: pushed eflags\n");
+ PUSHQ(esp, env->eip);
+ printf("the uirr is 0x%016lx \n", env->uintr_rr);
+ PUSHQ(esp, env->uintr_rr & 0x3f); // // 64-bit push; upper 58 bits pushed as 0
+ env->uintr_rr = 0;
+ env->regs[R_ESP] = esp;
+ env->eflags &= ~(TF_MASK | RF_MASK);
+ env->eip = env->uintr_handler;
+ printf("qemu: eip: 0x%lx\n",env->eip);
+
+ // PUSHQ(esp, env->segs[R_SS].selector);
+ // PUSHQ(esp, env->regs[R_ESP]);
+ // PUSHQ(esp, cpu_compute_eflags(env));
+ // PUSHQ(esp, env->segs[R_CS].selector);
+ // PUSHQ(esp, old_eip);
+}
+
+
+
+
+
/* 64 bit interrupt */
-// static bool Debug = true;
#define UINTR_UINV 0xec
static void do_interrupt64(CPUX86State *env, int intno, int is_int,
int error_code, target_ulong next_eip, int is_hw) // 在用户态中断中 is_hw = 1 !!! ??????
@@ -884,8 +924,9 @@ static void do_interrupt64(CPUX86State *env, int intno, int is_int,
if(intno == UINTR_UINV){
printf("recognize uintr\n");
// 清除apic的
- int prot; bool send = false;
+ int prot;
CPUState *cs = env_cpu(env);
+ bool send = false;
uint64_t upid_phyaddress = get_hphys2(cs, env->uintr_pd, MMU_DATA_LOAD, &prot);
uintr_upid upid;
cpu_physical_memory_rw(upid_phyaddress, &upid, 16, false);
@@ -904,8 +945,12 @@ static void do_interrupt64(CPUX86State *env, int intno, int is_int,
cpu_physical_memory_rw(APICaddress + 0xb0, &EOI, 8, false);
printf("the physical address of APIC 0x%lx the EOI content: 0x%lx\n", APICaddress,EOI);
cpu_physical_memory_rw(APICaddress + 0xb0, &zero, 4, true);
+ // uint64_t EOI;
+ // cpu_physical_memory_rw(APIC_DEFAULT_ADDRESS + 0xb0, &EOI, 8, false);
+ // printf("\n\n the EOI content: 0x%lx\n\n",EOI);
+ // cpu_physical_memory_rw(APIC_DEFAULT_ADDRESS + 0xb0, 0, 4, true);
if(send)helper_rrnzero(env);
- // return;
+ return;
}
dt = &env->idt;
@@ -1108,7 +1153,6 @@ void do_interrupt_all(X86CPU *cpu, int intno, int is_int,
int error_code, target_ulong next_eip, int is_hw) // 接收方执行中断?
{
CPUX86State *env = &cpu->env;
-
if (qemu_loglevel_mask(CPU_LOG_INT)) {
if ((env->cr[0] & CR0_PE_MASK)) {
static int count;
diff --git a/target/i386/tcg/sysemu/misc_helper.c b/target/i386/tcg/sysemu/misc_helper.c
index 1d8ad749f9..f0b0d27dc7 100644
--- a/target/i386/tcg/sysemu/misc_helper.c
+++ b/target/i386/tcg/sysemu/misc_helper.c
@@ -421,8 +421,8 @@ void helper_rdmsr(CPUX86State *env)
case MSR_IA32_UINTR_MISC:
val = env->uintr_misc;
rdcount ++;
- printf("qemu:rdmsr misc 0x%016lx\n",val);
- if(rdcount > 200) exit(2);
+ printf("qemu:rdmsr misc 0x%016lx eip: 0x%016lx\n",val,env->eip);
+ if(rdcount > 2000) exit(2);
break;
case MSR_IA32_UINTR_PD:
val = env->uintr_pd;
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index cfab8bde94..4b88d92719 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -5407,12 +5407,19 @@ static inline void gen_op_ld_v(DisasContext *s, int idx, TCGv t0, TCGv a0)
if(prefixes & PREFIX_REPZ){
modrm = x86_ldub_code(env, s);
printf("qemu: caught 0xf30fc7 SENDUIPI\n "); // 改 Debug
- CPUState *cs = env_cpu(env);
- int prot;
- uint64_t APICaddress = get_hphys2(cs, APIC_DEFAULT_ADDRESS, MMU_DATA_LOAD, &prot);
- uint64_t EOI;
- cpu_physical_memory_rw(APICaddress + 0xb0, &EOI, 8, false);
- printf("the physical address of APIC 0x%lx the EOI content: 0x%lx\n", APICaddress,EOI);
+ // CPUState *cs = env_cpu(env);
+ // int prot;
+ // uint64_t APICaddress = get_hphys2(cs, APIC_DEFAULT_ADDRESS, MMU_DATA_LOAD, &prot);
+ // uint64_t EOI;
+ // cpu_physical_memory_rw(APICaddress + 0xb0, &EOI, 8, false);
+ // printf("the physical address of APIC 0x%lx the EOI content: 0x%lx\n", APICaddress,EOI);
+
+ uint64_t EOI;
+ cpu_physical_memory_rw(APIC_DEFAULT_ADDRESS + 0xb0, &EOI, 8, false);\
+ printf("\n\n the EOI content: 0x%lx\n\n",EOI);
+
+
+
// s->tmp1_i64 = env->uintr_tt; //地址
// tcg_gen_qemu_ld_i64(s->tmp1_i64, s->A0 , 0, MO_LEUQ);
// printf("qemu: loaded 0x%lx A0: 0x%lx\n",(uint64_t)((void*)s->tmp1_i64),(uint64_t)s->A0);
@@ -7759,6 +7766,7 @@ static inline void gen_op_ld_v(DisasContext *s, int idx, TCGv t0, TCGv a0)
if (prefixes & PREFIX_REPZ){
printf("qemu:caught 0xf30f01ec UIRET\n"); // 改
f3flag = false;
+ exit(12);
}
break;
case 0xed: