root/tools/sim_qurt/sim_qurt.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. qurt_hvx_lock
  2. qurt_hvx_unlock

#include "hexagon_standalone.h"

extern "C" {

int qurt_hvx_lock(int mode) {
    SIM_ACQUIRE_HVX;
    if (mode == 0) {
        SIM_CLEAR_HVX_DOUBLE_MODE;
    } else {
        SIM_SET_HVX_DOUBLE_MODE;
    }
    return 0;
}

int qurt_hvx_unlock() {
    SIM_RELEASE_HVX;
    return 0;
}

}  // extern "C"

/* [<][>][^][v][top][bottom][index][help] */