jni_gem5Op.c (8547:5979b029bbb4) jni_gem5Op.c (11358:cd41493e8b7e)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 87 unchanged lines hidden (view full) ---

96}
97
98JNIEXPORT void JNICALL
99Java_jni_gem5Op_exit(JNIEnv *env, jobject obj, jlong j_ns_delay)
100{
101 m5_exit(j_ns_delay);
102}
103
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 87 unchanged lines hidden (view full) ---

96}
97
98JNIEXPORT void JNICALL
99Java_jni_gem5Op_exit(JNIEnv *env, jobject obj, jlong j_ns_delay)
100{
101 m5_exit(j_ns_delay);
102}
103
104JNIEXPORT void JNICALL
105Java_jni_gem5Op_fail(JNIEnv *env, jobject obj, jlong j_ns_delay, jlong j_code)
106{
107 m5_fail(j_ns_delay, j_code);
108}
109
104JNIEXPORT jlong JNICALL
110JNIEXPORT jlong JNICALL
105Java_jni_gem5Op_initparam(JNIEnv *env, jobject obj)
111Java_jni_gem5Op_initparam(JNIEnv *env, jobject obj, jlong j_key_str1,
112 jlong j_key_str2)
106{
113{
107 uint64_t param = m5_initparam();
114 uint64_t param = m5_initparam(j_key_str1, j_key_str2);
108 if (param & 0x8000000000000000ULL)
109 printf("Truncated return value from m_initparam() to 63 bits\n");
110 return (param & 0x7FFFFFFFFFFFFFFFULL);
111}
112
113JNIEXPORT void JNICALL
114Java_jni_gem5Op_checkpoint(JNIEnv *env, jobject obj,
115 jlong j_ns_delay, jlong j_ns_period)

--- 57 unchanged lines hidden ---
115 if (param & 0x8000000000000000ULL)
116 printf("Truncated return value from m_initparam() to 63 bits\n");
117 return (param & 0x7FFFFFFFFFFFFFFFULL);
118}
119
120JNIEXPORT void JNICALL
121Java_jni_gem5Op_checkpoint(JNIEnv *env, jobject obj,
122 jlong j_ns_delay, jlong j_ns_period)

--- 57 unchanged lines hidden ---