[prev in list] [next in list] [prev in thread] [next in thread]
List: bochs-cvs
Subject: [Bochs-cvs] [13528] trunk/bochs/cpu/proc_ctrl.cc
From: sshwarts--- via Bochs-cvs <bochs-cvs () lists ! sourceforge ! net>
Date: 2018-08-26 18:11:11
Message-ID: 1535307072.56166.14023 () sfp-scm-5 ! v30 ! lw ! sourceforge ! com
[Download RAW message or body]
Revision: 13528
Author: sshwarts
Date: 2018-08-26 18:11:10 +0000 (Sun, 26 Aug 2018)
Log Message:
-----------
fixed compilation of CLZERO pn cpu-level<6
Modified Paths:
--------------
trunk/bochs/cpu/proc_ctrl.cc
Modified: trunk/bochs/cpu/proc_ctrl.cc
===================================================================
--- trunk/bochs/cpu/proc_ctrl.cc 2018-08-19 08:32:19 UTC (rev 13527)
+++ trunk/bochs/cpu/proc_ctrl.cc 2018-08-26 18:11:10 UTC (rev 13528)
@@ -306,6 +306,7 @@
void BX_CPP_AttrRegparmN(1) BX_CPU_C::CLZERO(bxInstruction_c *i)
{
+#if BX_CPU_LEVEL >= 6
bx_address eaddr = RAX & ~BX_CONST64(CACHE_LINE_SIZE-1) & i->asize_mask();
BxPackedZmmRegister zmmzero; // zmm is always made available even if EVEX is not compiled in
@@ -313,6 +314,9 @@
for (unsigned n=0; n<CACHE_LINE_SIZE; n += 64) {
write_virtual_zmmword(i->seg(), eaddr+n, &zmmzero);
}
+#endif
+
+ BX_NEXT_INSTR(i);
}
void BX_CPU_C::handleCpuModeChange(void)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bochs-cvs mailing list
Bochs-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic