From edf559cda9c3c2e28d42ff032eeeeea3e12fd09a Mon Sep 17 00:00:00 2001 From: Cuda-Chen Date: Sat, 28 Dec 2024 15:48:12 +0800 Subject: [PATCH] Remove mfence --- virtio-snd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virtio-snd.c b/virtio-snd.c index 291b1cc..c6bc4ca 100644 --- a/virtio-snd.c +++ b/virtio-snd.c @@ -301,9 +301,9 @@ typedef struct { // PCM frame ring buffer virtio_snd_ring_buffer_t ring; } virtio_snd_prop_t; -#define VSND_COMPILER_BARRIER \ - do { \ - asm("mfence" ::: "memory"); \ +#define VSND_COMPILER_BARRIER \ + do { \ + asm("" ::: "memory"); \ } while (0) static virtio_snd_config_t vsnd_configs[VSND_DEV_CNT_MAX];