Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9062603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:46:44+00:00 2026-06-16T15:46:44+00:00

In QEMU, an operating system can run above software emulated CPU. How can be

  • 0

In QEMU, an operating system can run above software emulated CPU.
How can be a CPU emulated by software?
I want to know about detail.

If CPU is emulated by software does registers are emulated with host system memory?

Let say there is ARM assembly code

LDRB r0, [r1], #1

How can this be emulated in x86 environment?

My guess is that emulating software keeps memory mapping space for r0 (4 bytes), r1 (4 bytes) and then updates the register value for corresponding memory location… Am I wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:46:45+00:00Added an answer on June 16, 2026 at 3:46 pm

    Please see this file for the C-level modelling of the state of an ARM CPU as done by QEMU.

    It’s pretty straight-forward, and (of course) as you suspect the registers (and all other state) are modelled as C variables.

    The core structure begins:

    typedef struct CPUARMState {
        /* Regs for current mode.  */
        uint32_t regs[16];
       /* Frequently accessed CPSR bits are stored separately for efficiency.
          This contains all the other bits.  Use cpsr_{read,write} to access
          the whole CPSR.  */
       uint32_t uncached_cpsr;
       uint32_t spsr;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can a new machine type be added for qemu-system-arm -M <MachineType> without having to
What ring does qemu execute in when not tied into an existing hypervisor? Any
Problem statement: Create a connection to Qemu. Done by the call-conn1 = new Connect(qemu+ssh://login_name@IP/system,
In qemu/kvm, we can set arguments -kernel with path to kernel image, -initrd with
I have multiple VMs running on qemu-kvm. I want to send audio output from
I want to setup a x86 Linux Box such that: It uses minimal system
I have built the qemu_x86_defconfig with buildroot-2011.11, the qemu-system-i386 version is 1.0.50 and I
a KVM VMs presented to be a qemu-kvm process. In some cases,if we want
Is it possible to emulate boot from flash memory using qemu-system-arm ? (Using Integrator/CP
here's the log: ……/android-sdk-mac_86/platforms/android-8/images//kernel-qemu: Interrupted system call qemu: could not load kernel '……/android-sdk-mac_86/platforms/android-8/images//kernel-qemu Please

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.