[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [RFC v2 PATCH 03/13] tcg/aarch64: Add support for fence
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [RFC v2 PATCH 03/13] tcg/aarch64: Add support for fence |
Date: |
Tue, 31 May 2016 13:34:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
On 05/31/2016 11:39 AM, Pranith Kumar wrote:
+ /* System instructions. */
+ DMB_ISH = 0xd5033bbf,
...
+ case INDEX_op_mb:
+ tcg_out32(s, DMB_ISH);
+ break;
With the flags argument, this needs to be split.
DMB_ISH = 0xd5033b8f
DMB_RD = 0x00000010
DMB_WR = 0x00000020
if (a0 == TCG_MB_READ) {
a0 = DMB_RD;
} else if (a0 == TCG_MB_WRITE) {
a0 = DMB_WR;
} else {
a0 = DMB_RD | DMB_WR;
}
tcg_out32(s, DMB_ISH | a0);
r~