Adding mmap for code cache and exposing cache properties.
This commit is contained in:
33
src/xenia/cpu/backend/code_cache.h
Normal file
33
src/xenia/cpu/backend/code_cache.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2015 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_BACKEND_CODE_CACHE_H_
|
||||
#define XENIA_BACKEND_CODE_CACHE_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace xe {
|
||||
namespace cpu {
|
||||
namespace backend {
|
||||
|
||||
class CodeCache {
|
||||
public:
|
||||
CodeCache() = default;
|
||||
virtual ~CodeCache() = default;
|
||||
|
||||
virtual std::wstring file_name() const = 0;
|
||||
virtual uint32_t base_address() const = 0;
|
||||
virtual uint32_t total_size() const = 0;
|
||||
};
|
||||
|
||||
} // namespace backend
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_BACKEND_CODE_CACHE_H_
|
||||
Reference in New Issue
Block a user