cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

test_dsp_r1_repl_qb.c (213B)


      1#include<stdio.h>
      2#include<assert.h>
      3
      4int main()
      5{
      6    int rd, result;
      7
      8    result = 0xBFBFBFBF;
      9    __asm
     10        ("repl.qb %0, 0xBF\n\t"
     11         : "=r"(rd)
     12        );
     13    assert(rd == result);
     14
     15    return 0;
     16}