Author Topic: CPU emulator  (Read 4135 times)

Offline shaynox

  • Full Member
  • **
  • Posts: 117
  • Country: fr
  • use Windows 10 x64
CPU emulator
« on: March 30, 2015, 10:20:12 PM »
Hello, do you know how use avx in machine emulator ? I have already tried qemu/bochs/Hyper-V, but no one work, it's reboot instead read avx instruction then jump into infinite loop.
My test project is in attachment.

(This project is build with windows)
« Last Edit: May 15, 2015, 04:17:13 PM by shaynox »
Basic asm standard:
reg(lowercase) - instruction(lowercase) -> instruction     dest, src

Offline deanjeffery

  • Jr. Member
  • *
  • Posts: 2
Re: CPU emulator
« Reply #1 on: June 21, 2016, 08:51:59 AM »
Did you try intel software development emulator yet? I think it is the best fit for you today. Please go to

software.intel.com/en-us/articles/intel-avx-cc-intrinsics-emulation

to get more information.


Regards,
Custom essay writing service

Offline shaynox

  • Full Member
  • **
  • Posts: 117
  • Country: fr
  • use Windows 10 x64
Re: CPU emulator
« Reply #2 on: June 30, 2016, 11:49:29 AM »
Well thanks.

The answer was simple finally: code ourselves the instructions into macros.

But I decided to pass this project and use a real machine instead.

« Last Edit: June 30, 2016, 11:51:07 AM by shaynox »
Basic asm standard:
reg(lowercase) - instruction(lowercase) -> instruction     dest, src

Offline jeniferconnorsmk

  • New Member
  • Posts: 1
Re: CPU emulator
« Reply #3 on: September 18, 2018, 07:36:09 AM »
One important thing should be noted here is that running an application with different options or input will also trigger different behavior and dynamic execution, so one cannot assume that a single run of an application will tell them the whole story

Regards

my assignment help reviews
myassignmenthelp reviews

Offline shaynox

  • Full Member
  • **
  • Posts: 117
  • Country: fr
  • use Windows 10 x64
Re: CPU emulator
« Reply #4 on: September 18, 2018, 07:55:57 AM »
Maybe, but the problem of machine emulator is that they have more than 1 incompatibility with my OS, I forgot how many, there is the LFB address as example that is different, but when using it with real machine, the problem disappear.
« Last Edit: October 21, 2018, 05:18:36 PM by shaynox »
Basic asm standard:
reg(lowercase) - instruction(lowercase) -> instruction     dest, src

Offline christeena

  • Jr. Member
  • *
  • Posts: 3
Re: CPU emulator
« Reply #5 on: November 01, 2018, 09:16:56 AM »
CPU emulator is a program emulating the internal operation of a physical CPU in software. It has a lot of applications in the computer security area. In this article, it is clearly discussed about its programming. Thanks for this informative topic. my printer is not printing   

Offline harryclip

  • New Member
  • Posts: 1
Re: CPU emulator
« Reply #6 on: December 20, 2018, 05:51:47 AM »
One important thing should be noted here is that running an application with different options or input will also trigger different behavior and dynamic execution, so one cannot assume that a single run of an application will tell them the whole story you can see from super smash flash 2 unblocked

Offline alexisjones

  • New Member
  • Posts: 1
Re: CPU emulator
« Reply #7 on: January 07, 2019, 11:51:52 AM »
Sandy Bridge only has AVX support. You're out of luck there unless you buy a Haswell CPU.
Bochs has support for AVX2 emulation since v2.5, but it will be much slower, you only can test the correctness of your code.

www Hulu com Activate Code
www Hulu com Activate Activation Code

Offline fredericopissarra

  • Jr. Member
  • *
  • Posts: 47
Re: CPU emulator
« Reply #8 on: April 11, 2019, 12:09:31 PM »
You must check if the emulated processor has support for AVX (or AVX2):

Code: [Select]
  bits  64
  default rel

  section .text

  global  supports_avx
  global  supports_avx2

;
; SysV and MS calling convention mandates RBX must be
; saved between calls. I usualy use asm routines from C functions!
;

supports_avx:
  push  rbx
  mov   eax,1
  cpuid
  xor   eax,eax
  test  ecx,1 << 28
  setnz al
  pop   rbx
  ret

supports_avx2:
  push  rbx
  xor   ecx,ecx
  mov   eax,7
  cpuid
  xor   eax,eax
  test  ebx,1 << 5
  setnz al
  pop   rbx
  ret

Here's some features from Intel's Software Development Manuals:
« Last Edit: April 11, 2019, 12:11:33 PM by fredericopissarra »

Offline henrysmith45555

  • New Member
  • Posts: 1
Re: CPU emulator
« Reply #9 on: May 22, 2019, 07:45:38 AM »
You could try running it in the Intel Software Development Emulator, which can catch and dynamically translate attempts to perform AVX instructions.
It may not work; if it does, it'll be slower and perhaps more unreliable than it should be. But it's worth a shot. Note that if the software checks CPUID, it may be necessary to use specific emulator flags.
It's unlikely to work if the software installs a driver because these are not part of the emulated process.

---------------------------------
puppies for sale