const char* kPlatformCoreAarch64 = "aarch64";
const char* kPlatformCoreX86 = "x86";
const char* kPlatformCoreX86_64 = "x86_64";
+const char* kPlatformCoreRISCV64 = "riscv64";
+const char* kPlatformCoreRISCV32 = "riscv32";
// core fpu arch
const char* kPlatformCoreSse2 = "sse2";
const char* kPlatformCoreSse3 = "sse3";
bool bool_result = false;
std::string arch = "";
- PlatformResult ret = GetValueStringNative("tizen.org/feature/platform.core.cpu.arch", &arch);
+ PlatformResult ret = GetValueBoolNative("tizen.org/feature/platform.core.cpu.arch.riscv64", &bool_result);
+ if (ret.IsError()) {
+ LoggerE("GetValueBoolNative Error");
+ return ret;
+ }
+
+ if (bool_result) {
+ *return_value = std::string(kPlatformCoreRISCV64);
+ return PlatformResult(ErrorCode::NO_ERROR);
+ }
+
+ ret = GetValueBoolNative("tizen.org/feature/platform.core.cpu.arch.riscv32", &bool_result);
+ if (ret.IsError()) {
+ LoggerE("GetValueBoolNative Error");
+ return ret;
+ }
+
+ if (bool_result) {
+ *return_value = std::string(kPlatformCoreRISCV32);
+ return PlatformResult(ErrorCode::NO_ERROR);
+ }
+
+ ret = GetValueStringNative("tizen.org/feature/platform.core.cpu.arch", &arch);
if (ret.IsError()) {
LoggerE("GetValueStringNative Error");
}