Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2020-02-05 19:00:32 +0000
committerEugene Tarassov2020-02-05 19:00:32 +0000
commitd265940f59379e7cd537620238ca6fbc0b503147 (patch)
treee4446bb7005e3988171486a21f2d81458d8e9ec8
parent2c732e9cfa7882f5c832943b6f40719ef135cce7 (diff)
downloadorg.eclipse.tcf-d265940f59379e7cd537620238ca6fbc0b503147.tar.gz
org.eclipse.tcf-d265940f59379e7cd537620238ca6fbc0b503147.tar.xz
org.eclipse.tcf-d265940f59379e7cd537620238ca6fbc0b503147.zip
Bug 559136 - add flags to control stop of context when using memory service
-rw-r--r--docs/TCF Service - Memory.html26
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java28
2 files changed, 51 insertions, 3 deletions
diff --git a/docs/TCF Service - Memory.html b/docs/TCF Service - Memory.html
index d530c7a4f..6e7867f55 100644
--- a/docs/TCF Service - Memory.html
+++ b/docs/TCF Service - Memory.html
@@ -374,7 +374,7 @@ E &bull; Memory &bull; memoryChanged &bull; <i>&lt;string: context ID&gt;</i> &b
PROP_START_BOUND = "StartBound", <font color=#3F5FBF>/** Number, lowest address (inclusive) which is valid for the context */</font>
PROP_END_BOUND = "EndBound", <font color=#3F5FBF>/** Number, highest address (inclusive) which is valid for the context */</font>
PROP_ACCESS_TYPES = "AccessTypes"; <font color=#3F5FBF>/** Array of String, the access types allowed for this context */</font>
- <font color=#3F5FBF>/** <font color=#7F9FBF>@since</font> 1.3*/
+ <font color=#3F5FBF>/** <font color=#7F9FBF>@since</font> 1.3 */</font>
<font color=#7F0055>static final</font> String
PROP_ADDRESSABLE_UNIT_SIZE = "AddressableUnitSize", <font color=#3F5FBF>/** Number, addressable unit size in number of bytes */</font>
PROP_DEFAULT_WORD_SIZE = "DefaultWordSize"; <font color=#3F5FBF>/** Number, default word size in number of bytes */</font>
@@ -466,6 +466,30 @@ E &bull; Memory &bull; memoryChanged &bull; <i>&lt;string: context ID&gt;</i> &b
<font color=#7F0055>static final int</font> MODE_VERIFY = 0x2;
<font color=#3F5FBF>/**
+ * Memory access mode:
+ * Don't block access when memory address is known to be invalid.
+ * Note: can crash or hang target system.
+ * <font color=#7F9FBF>@since</font> 1.7
+ */</font>
+ <font color=#7F0055>static final int</font> MODE_BYPASS_ADDR_CHECK = 0x4;
+
+ <font color=#3F5FBF>/**
+ * Memory access mode:
+ * Don't flush or invalidate caches.
+ * Note: can compromise data coherence.
+ * <font color=#7F9FBF>@since</font> 1.7
+ */</font>
+ <font color=#7F0055>static final int</font> MODE_BYPASS_CACHE_SYNC = 0x8;
+
+ <font color=#3F5FBF>/**
+ * Memory access mode:
+ * Don't stop contexts in the process group.
+ * Note: can compromise data coherence.
+ * <font color=#7F9FBF>@since</font> 1.7
+ */</font>
+ <font color=#7F0055>static final int</font> MODE_DONT_STOP = 0x10;
+
+ <font color=#3F5FBF>/**
* <font color=#7F9FBF>@noimplement</font> This interface is not intended to be implemented by clients.
*/</font>
<font color=#7F0055>interface</font> MemoryContext {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java
index 4dad117e0..7713a2655 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007-2019 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007-2020 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -46,7 +46,7 @@ public interface IMemory extends IService {
PROP_START_BOUND = "StartBound", /** Number, lowest address (inclusive) which is valid for the context */
PROP_END_BOUND = "EndBound", /** Number, highest address (inclusive) which is valid for the context */
PROP_ACCESS_TYPES = "AccessTypes"; /** Array of String, the access types allowed for this context */
- /** @since 1.3*/
+ /** @since 1.3 */
static final String
PROP_ADDRESSABLE_UNIT_SIZE = "AddressableUnitSize", /** Number, addressable unit size in number of bytes */
PROP_DEFAULT_WORD_SIZE = "DefaultWordSize"; /** Number, default word size in number of bytes */
@@ -138,6 +138,30 @@ public interface IMemory extends IService {
static final int MODE_VERIFY = 0x2;
/**
+ * Memory access mode:
+ * Don't block access when memory address is known to be invalid.
+ * Note: can crash or hang target system.
+ * @since 1.7
+ */
+ static final int MODE_BYPASS_ADDR_CHECK = 0x4;
+
+ /**
+ * Memory access mode:
+ * Don't flush or invalidate caches.
+ * Note: can compromise data coherence.
+ * @since 1.7
+ */
+ static final int MODE_BYPASS_CACHE_SYNC = 0x8;
+
+ /**
+ * Memory access mode:
+ * Don't stop contexts in the process group.
+ * Note: can compromise data coherence.
+ * @since 1.7
+ */
+ static final int MODE_DONT_STOP = 0x10;
+
+ /**
* @noimplement This interface is not intended to be implemented by clients.
*/
interface MemoryContext {

Back to the top