Re: [PATCH] KVM: VMX: access regs array in vmenter.S in its natural order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After all I probably prefer Uros's order, since he took the time to send
a patch I'll apply it.

And now, a short history lecture on 8-bit processors for the younger,
and a walk down memory lane for everyone else...

On 10/03/20 20:16, Uros Bizjak wrote:
> FYI, the original x86 registers were not named in alphabetical order.
> Their names are explained in e.g. [1].

I think the reason why BX comes last is that it maps to the HL register
on the 8080, where "location pointed by HL" was the only available
addressing mode.

Likewise, CX maps to the BC register of the 8080.  That is only really
apparent if you take into account Z80 extensions such as the DJNZ or
LDIR instructions, but the Z80 predates the 8086 anyway.

So A -> AX, BC -> CX, DE -> DX, HL -> BX.

Thanks,

Roy Batty^A^KPaolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux