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

icount.c (700B)


      1#include "qemu/osdep.h"
      2#include "qapi/error.h"
      3#include "sysemu/cpu-timers.h"
      4
      5/* icount - Instruction Counter API */
      6
      7int use_icount;
      8
      9void icount_update(CPUState *cpu)
     10{
     11    abort();
     12}
     13void icount_configure(QemuOpts *opts, Error **errp)
     14{
     15    /* signal error */
     16    error_setg(errp, "cannot configure icount, TCG support not available");
     17}
     18int64_t icount_get_raw(void)
     19{
     20    abort();
     21    return 0;
     22}
     23int64_t icount_get(void)
     24{
     25    abort();
     26    return 0;
     27}
     28int64_t icount_to_ns(int64_t icount)
     29{
     30    abort();
     31    return 0;
     32}
     33int64_t icount_round(int64_t count)
     34{
     35    abort();
     36    return 0;
     37}
     38void icount_start_warp_timer(void)
     39{
     40    abort();
     41}
     42void icount_account_warp_timer(void)
     43{
     44    abort();
     45}